TLFloat
|
#include <cstring>
#include <cctype>
#include <cstdarg>
#include "suppress.hpp"
#include "tlfloat/tlmath.hpp"
#include "tlfloat/tlfloat.h"
Macros | |
#define | TLFLOAT_NO_LIBSTDCXX |
Functions | |
int | tlfloat_vfprintf (FILE *fp, const char *fmt, va_list ap) |
int | tlfloat_vprintf (const char *fmt, va_list ap) |
int | tlfloat_fprintf (FILE *fp, const char *fmt,...) |
int | tlfloat_printf (const char *fmt,...) |
int | tlfloat_vsnprintf (char *str, size_t size, const char *fmt, va_list ap) |
int | tlfloat_snprintf (char *str, size_t size, const char *fmt,...) |
float | tlfloat_strtof (const char *nptr, const char **endptr) |
double | tlfloat_strtod (const char *nptr, const char **endptr) |
tlfloat_quad_ | tlfloat_strtoq (const char *nptr, const char **endptr) |
tlfloat_octuple_ | tlfloat_strtoo (const char *nptr, const char **endptr) |
tlfloat_int128_t_ | tlfloat_strtoi128 (const char *nptr, const char **endptr, const int base) |
tlfloat_uint128_t_ | tlfloat_strtou128 (const char *nptr, const char **endptr, const int base) |
#define TLFLOAT_NO_LIBSTDCXX |
int tlfloat_fprintf | ( | FILE * | fp, |
const char * | fmt, | ||
... | |||
) |
See explanation for tlfloat_printf()
int tlfloat_printf | ( | const char * | fmt, |
... | |||
) |
The tlfloat_printf family of functions has the functionality to produce output of numbers of the types defined in TLFloat library, in addition to the functionality of the standard printf family of functions. To output a number of type defined in TLFloat library, use _m as the length modifier where m is a decimal integer represents the data size of the corresponding argument in bits. For example, use '%_256g' to output an octuple-precision FP number, and '%_128d' to output a 128-bit signed integer. Q and O modifier have to be used to output an FP number in tlfloat_quad and tlfloat_octuple types, respectively.
int tlfloat_snprintf | ( | char * | str, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
See explanation for tlfloat_printf()
double tlfloat_strtod | ( | const char * | nptr, |
const char ** | endptr | ||
) |
The tlfloat_strtod family of functions provides functionality equivalent to the standard strtod family of functions, but corresponds to the types defined in the TLFloat library.
float tlfloat_strtof | ( | const char * | nptr, |
const char ** | endptr | ||
) |
tlfloat_int128_t_ tlfloat_strtoi128 | ( | const char * | nptr, |
const char ** | endptr, | ||
const int | base | ||
) |
tlfloat_octuple_ tlfloat_strtoo | ( | const char * | nptr, |
const char ** | endptr | ||
) |
tlfloat_quad_ tlfloat_strtoq | ( | const char * | nptr, |
const char ** | endptr | ||
) |
tlfloat_uint128_t_ tlfloat_strtou128 | ( | const char * | nptr, |
const char ** | endptr, | ||
const int | base | ||
) |
int tlfloat_vfprintf | ( | FILE * | fp, |
const char * | fmt, | ||
va_list | ap | ||
) |
See explanation for tlfloat_printf()
int tlfloat_vprintf | ( | const char * | fmt, |
va_list | ap | ||
) |
See explanation for tlfloat_printf()
int tlfloat_vsnprintf | ( | char * | str, |
size_t | size, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
See explanation for tlfloat_printf()