#include <ieee754.h>
Definition at line 23 of file ieee754.h.
◆ Double() [1/3]
internal::Double::Double |
( |
| ) |
|
|
inline |
◆ Double() [2/3]
internal::Double::Double |
( |
double | d | ) |
|
|
inline |
◆ Double() [3/3]
◆ EffectiveSignificandSize()
static int internal::Double::EffectiveSignificandSize |
( |
int | order | ) |
|
|
inlinestatic |
Definition at line 51 of file ieee754.h.
51 {
52 if (order >= -1021)
53 return 53;
54 else if (order <= -1074)
55 return 0;
56 else
57 return order + 1074;
58 }
◆ Exponent()
int internal::Double::Exponent |
( |
| ) |
const |
|
inline |
Definition at line 39 of file ieee754.h.
39{
return static_cast<int>(((
u_ & kExponentMask) >> kSignificandSize) - kExponentBias); }
◆ IntegerExponent()
int internal::Double::IntegerExponent |
( |
| ) |
const |
|
inline |
◆ IntegerSignificand()
uint64_t internal::Double::IntegerSignificand |
( |
| ) |
const |
|
inline |
Definition at line 47 of file ieee754.h.
uint64_t Significand() const
◆ IsInf()
bool internal::Double::IsInf |
( |
| ) |
const |
|
inline |
◆ IsNan()
bool internal::Double::IsNan |
( |
| ) |
const |
|
inline |
◆ IsNanOrInf()
bool internal::Double::IsNanOrInf |
( |
| ) |
const |
|
inline |
Definition at line 43 of file ieee754.h.
43{
return (
u_ & kExponentMask) == kExponentMask; }
◆ IsNormal()
bool internal::Double::IsNormal |
( |
| ) |
const |
|
inline |
◆ IsZero()
bool internal::Double::IsZero |
( |
| ) |
const |
|
inline |
Definition at line 45 of file ieee754.h.
45{
return (
u_ & (kExponentMask | kSignificandMask)) == 0; }
◆ NextPositiveDouble()
double internal::Double::NextPositiveDouble |
( |
| ) |
const |
|
inline |
Definition at line 32 of file ieee754.h.
32 {
35 }
#define RAPIDJSON_ASSERT(x)
Assertion.
◆ Sign()
bool internal::Double::Sign |
( |
| ) |
const |
|
inline |
Definition at line 37 of file ieee754.h.
37{
return (
u_ & kSignMask) != 0; }
◆ Significand()
uint64_t internal::Double::Significand |
( |
| ) |
const |
|
inline |
Definition at line 38 of file ieee754.h.
38{
return u_ & kSignificandMask; }
◆ ToBias()
uint64_t internal::Double::ToBias |
( |
| ) |
const |
|
inline |
Definition at line 49 of file ieee754.h.
49{
return (
u_ & kSignMask) ? ~u_ + 1 :
u_ | kSignMask; }
◆ Uint64Value()
uint64_t internal::Double::Uint64Value |
( |
| ) |
const |
|
inline |
◆ Value()
double internal::Double::Value |
( |
| ) |
const |
|
inline |
◆ d_
double internal::Double::d_ |
◆ u_
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/include/rapidjson/internal/ieee754.h