NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Functions | |
constexpr fastfloat_really_inline int32_t | power (int32_t q) noexcept |
template<typename T > | |
from_chars_result | parse_infnan (const char *first, const char *last, T &value) noexcept |
void | trim (decimal &h) |
uint32_t | number_of_digits_decimal_left_shift (const decimal &h, uint32_t shift) |
uint64_t | round (decimal &h) |
void | decimal_left_shift (decimal &h, uint32_t shift) |
void | decimal_right_shift (decimal &h, uint32_t shift) |
|
inline |
Definition at line 153 of file simple_decimal_conversion.h.
References number_of_digits_decimal_left_shift(), and trim().
Referenced by fast_float::compute_float().
|
inline |
Definition at line 195 of file simple_decimal_conversion.h.
References trim().
Referenced by fast_float::compute_float().
|
inline |
Definition at line 33 of file simple_decimal_conversion.h.
Referenced by decimal_left_shift().
|
noexcept |
Special case +inf, -inf, nan, infinity, -infinity. The case comparisons could be made much faster given that we know that the strings a null-free and fixed.
Definition at line 23 of file parse_number.h.
References fast_float::from_chars_result::ec, fast_float::fastfloat_strncasecmp(), and fast_float::from_chars_result::ptr.
Referenced by fast_float::from_chars_advanced().
|
constexprnoexcept |
For q in (0,350), we have that f = (((152170 + 65536) * q ) >> 16); is equal to floor(p) + q where p = log(5**q)/log(2) = q * log(5)/log(2)
For negative values of q in (-400,0), we have that f = (((152170 + 65536) * q ) >> 16); is equal to -ceil(p) + q where p = log(5**-q)/log(2) = -q * log(5)/log(2)
Definition at line 58 of file decimal_to_binary.h.
Referenced by fast_float::add_native(), fast_float::compute_error_scaled(), fast_float::compute_float(), and fast_float::binary_format< T >::exact_power_of_ten().
|
inline |
Definition at line 126 of file simple_decimal_conversion.h.
Referenced by fast_float::compute_float().
|
inline |
Definition at line 25 of file simple_decimal_conversion.h.
Referenced by decimal_left_shift(), and decimal_right_shift().