Leonardus
Loading...
Searching...
No Matches
Namespaces | Functions
conversion.h File Reference

Conversion functions. More...

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

Go to the source code of this file.

Namespaces

namespace  conversion
 Collection of conversion functions.
 

Functions

std::string conversion::__int128_to_string (__int128 p_z)
 Converts an __int128 to its string representation.
 
std::string conversion::__float128_to_string (__float128 p_float, size_t p_precision)
 Converts a __float128 to its string representation.
 
__int128 conversion::string_to___int128 (const std::string &p_s)
 Converts a string to an __int128 value.
 
__float128 conversion::string_to___float128 (const std::string &p_s)
 Converts a string to a __float128 value.
 
std::pair< bool, __float128 > conversion::mpz_t_to___float128 (const mpz_t p_src)
 Converts a mpz_t into a __float128.
 
std::pair< bool, __int128 > conversion::mpz_t_to___int128 (const mpz_t p_src)
 Converts a mpz_t into an __int128.
 
void conversion::__int128_to_mpz_t (mpz_t p_dst, __int128 p_src)
 Converts an __int128 into a mpz_t.
 
bool conversion::__float128_to_mpf_t (mpf_t p_dst, __float128 p_f128)
 Converts a __float128 to a mpf_t.
 

Detailed Description

Conversion functions.