Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
fast_float::binary_format< T > Struct Template Reference

#include <src/fast_float/fast_float.h>

Public Member Functions

constexpr int mantissa_explicit_bits ()
 
constexpr int mantissa_explicit_bits ()
 
constexpr int max_exponent_round_to_even ()
 
constexpr int max_exponent_round_to_even ()
 
constexpr int min_exponent_round_to_even ()
 
constexpr int min_exponent_round_to_even ()
 
constexpr int minimum_exponent ()
 
constexpr int minimum_exponent ()
 
constexpr int infinite_power ()
 
constexpr int infinite_power ()
 
constexpr int sign_index ()
 
constexpr int sign_index ()
 
constexpr int min_exponent_fast_path ()
 
constexpr int min_exponent_fast_path ()
 
constexpr int max_exponent_fast_path ()
 
constexpr int max_exponent_fast_path ()
 
constexpr uint64_t max_mantissa_fast_path ()
 
constexpr uint64_t max_mantissa_fast_path ()
 
constexpr double exact_power_of_ten (int64_t power)
 
constexpr float exact_power_of_ten (int64_t power)
 
constexpr int largest_power_of_ten ()
 
constexpr int largest_power_of_ten ()
 
constexpr int smallest_power_of_ten ()
 
constexpr int smallest_power_of_ten ()
 

Static Public Member Functions

static constexpr int mantissa_explicit_bits ()
 
static constexpr int minimum_exponent ()
 
static constexpr int infinite_power ()
 
static constexpr int sign_index ()
 
static constexpr int min_exponent_fast_path ()
 
static constexpr int max_exponent_fast_path ()
 
static constexpr int max_exponent_round_to_even ()
 
static constexpr int min_exponent_round_to_even ()
 
static constexpr uint64_t max_mantissa_fast_path ()
 
static constexpr int largest_power_of_ten ()
 
static constexpr int smallest_power_of_ten ()
 
static constexpr T exact_power_of_ten (int64_t power)
 

Detailed Description

template<typename T>
struct fast_float::binary_format< T >

Member Function Documentation

◆ exact_power_of_ten() [1/3]

template<typename T >
static constexpr T fast_float::binary_format< T >::exact_power_of_ten ( int64_t  power)
inlinestaticconstexpr

Referenced by fast_float::from_chars_advanced().

+ Here is the caller graph for this function:

◆ exact_power_of_ten() [2/3]

constexpr double fast_float::binary_format< double >::exact_power_of_ten ( int64_t  power)
inlineconstexpr
396 {
398}
fastfloat_really_inline int power(int q) noexcept
Definition fast_float.h:1518
static constexpr double powers_of_ten_double[]
Definition fast_float.h:305

References fast_float::powers_of_ten_double.

◆ exact_power_of_ten() [3/3]

constexpr float fast_float::binary_format< float >::exact_power_of_ten ( int64_t  power)
inlineconstexpr
400 {
401
403}
static constexpr float powers_of_ten_float[]
Definition fast_float.h:308

References fast_float::powers_of_ten_float.

◆ infinite_power() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::infinite_power ( )
inlinestaticconstexpr

◆ infinite_power() [2/3]

constexpr int fast_float::binary_format< double >::infinite_power ( )
inlineconstexpr
356 {
357 return 0x7FF;
358}

◆ infinite_power() [3/3]

constexpr int fast_float::binary_format< float >::infinite_power ( )
inlineconstexpr
359 {
360 return 0xFF;
361}

◆ largest_power_of_ten() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::largest_power_of_ten ( )
inlinestaticconstexpr

◆ largest_power_of_ten() [2/3]

constexpr int fast_float::binary_format< double >::largest_power_of_ten ( )
inlineconstexpr
407 {
408 return 308;
409}

◆ largest_power_of_ten() [3/3]

constexpr int fast_float::binary_format< float >::largest_power_of_ten ( )
inlineconstexpr
411 {
412 return 38;
413}

◆ mantissa_explicit_bits() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::mantissa_explicit_bits ( )
inlinestaticconstexpr

Referenced by fast_float::detail::to_float().

+ Here is the caller graph for this function:

◆ mantissa_explicit_bits() [2/3]

constexpr int fast_float::binary_format< double >::mantissa_explicit_bits ( )
inlineconstexpr
326 {
327 return 52;
328}

◆ mantissa_explicit_bits() [3/3]

constexpr int fast_float::binary_format< float >::mantissa_explicit_bits ( )
inlineconstexpr
329 {
330 return 23;
331}

◆ max_exponent_fast_path() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::max_exponent_fast_path ( )
inlinestaticconstexpr

◆ max_exponent_fast_path() [2/3]

constexpr int fast_float::binary_format< double >::max_exponent_fast_path ( )
inlineconstexpr
381 {
382 return 22;
383}

◆ max_exponent_fast_path() [3/3]

constexpr int fast_float::binary_format< float >::max_exponent_fast_path ( )
inlineconstexpr
384 {
385 return 10;
386}

◆ max_exponent_round_to_even() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::max_exponent_round_to_even ( )
inlinestaticconstexpr

◆ max_exponent_round_to_even() [2/3]

constexpr int fast_float::binary_format< double >::max_exponent_round_to_even ( )
inlineconstexpr
333 {
334 return 23;
335}

◆ max_exponent_round_to_even() [3/3]

constexpr int fast_float::binary_format< float >::max_exponent_round_to_even ( )
inlineconstexpr
337 {
338 return 10;
339}

◆ max_mantissa_fast_path() [1/3]

template<typename T >
static constexpr uint64_t fast_float::binary_format< T >::max_mantissa_fast_path ( )
inlinestaticconstexpr

◆ max_mantissa_fast_path() [2/3]

constexpr uint64_t fast_float::binary_format< double >::max_mantissa_fast_path ( )
inlineconstexpr
388 {
389 return uint64_t(2) << mantissa_explicit_bits();
390}
static constexpr int mantissa_explicit_bits()
unsigned __int64 uint64_t
Definition unistd.h:80

◆ max_mantissa_fast_path() [3/3]

constexpr uint64_t fast_float::binary_format< float >::max_mantissa_fast_path ( )
inlineconstexpr
391 {
392 return uint64_t(2) << mantissa_explicit_bits();
393}

◆ min_exponent_fast_path() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::min_exponent_fast_path ( )
inlinestaticconstexpr

◆ min_exponent_fast_path() [2/3]

constexpr int fast_float::binary_format< double >::min_exponent_fast_path ( )
inlineconstexpr
366 {
367#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
368 return 0;
369#else
370 return -22;
371#endif
372}

◆ min_exponent_fast_path() [3/3]

constexpr int fast_float::binary_format< float >::min_exponent_fast_path ( )
inlineconstexpr
373 {
374#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
375 return 0;
376#else
377 return -10;
378#endif
379}

◆ min_exponent_round_to_even() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::min_exponent_round_to_even ( )
inlinestaticconstexpr

◆ min_exponent_round_to_even() [2/3]

constexpr int fast_float::binary_format< double >::min_exponent_round_to_even ( )
inlineconstexpr
341 {
342 return -4;
343}

◆ min_exponent_round_to_even() [3/3]

constexpr int fast_float::binary_format< float >::min_exponent_round_to_even ( )
inlineconstexpr
345 {
346 return -17;
347}

◆ minimum_exponent() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::minimum_exponent ( )
inlinestaticconstexpr

◆ minimum_exponent() [2/3]

constexpr int fast_float::binary_format< double >::minimum_exponent ( )
inlineconstexpr
349 {
350 return -1023;
351}

◆ minimum_exponent() [3/3]

constexpr int fast_float::binary_format< float >::minimum_exponent ( )
inlineconstexpr
352 {
353 return -127;
354}

◆ sign_index() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::sign_index ( )
inlinestaticconstexpr

Referenced by fast_float::detail::to_float().

+ Here is the caller graph for this function:

◆ sign_index() [2/3]

constexpr int fast_float::binary_format< double >::sign_index ( )
inlineconstexpr
363{ return 63; }

◆ sign_index() [3/3]

constexpr int fast_float::binary_format< float >::sign_index ( )
inlineconstexpr
364{ return 31; }

◆ smallest_power_of_ten() [1/3]

template<typename T >
static constexpr int fast_float::binary_format< T >::smallest_power_of_ten ( )
inlinestaticconstexpr

◆ smallest_power_of_ten() [2/3]

constexpr int fast_float::binary_format< double >::smallest_power_of_ten ( )
inlineconstexpr
416 {
417 return -342;
418}

◆ smallest_power_of_ten() [3/3]

constexpr int fast_float::binary_format< float >::smallest_power_of_ten ( )
inlineconstexpr
420 {
421 return -65;
422}

The documentation for this struct was generated from the following file: