Leonardus
Namespaces | Functions
algo.h File Reference

Algorithms. More...

#include <string>
#include <cstdint>
#include <gmp.h>
+ Include dependency graph for algo.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  algo
 Collection of numeric algorithms.
 

Functions

__int128 algo::xgcd (__int128 p_a, __int128 p_b, __int128 &p_s, __int128 &p_t)
 Extended Euclidean algorithm. More...
 
bool algo::isint128 (std::string p_str)
 Is the string a 128 bit integer. More...
 
bool algo::isint128 (const mpz_t p_x)
 Is the multiple precision integer a 128 bit integer. More...
 
int32_t algo::rand (uint32_t *seed)
 ISO C rand_r() for 32 bit. More...
 

Detailed Description

Algorithms.