#include <ieee.h>
Definition at line 286 of file ieee.h.
◆ Single() [1/3]
double_conversion::Single::Single |
( |
| ) |
|
|
inline |
◆ Single() [2/3]
double_conversion::Single::Single |
( |
float |
f | ) |
|
|
inlineexplicit |
Definition at line 297 of file ieee.h.
static uint32_t float_to_uint32(float f)
◆ Single() [3/3]
double_conversion::Single::Single |
( |
uint32_t |
d32 | ) |
|
|
inlineexplicit |
◆ AsDiyFp()
DiyFp double_conversion::Single::AsDiyFp |
( |
| ) |
const |
|
inline |
Definition at line 302 of file ieee.h.
302 {
306 }
uint32_t Significand() const
#define DOUBLE_CONVERSION_ASSERT(condition)
◆ AsUint32()
uint32_t double_conversion::Single::AsUint32 |
( |
| ) |
const |
|
inline |
Definition at line 309 of file ieee.h.
309 {
310 return d32_;
311 }
◆ Exponent()
int double_conversion::Single::Exponent |
( |
| ) |
const |
|
inline |
Definition at line 313 of file ieee.h.
313 {
315
317 int biased_e =
319 return biased_e - kExponentBias;
320 }
static const uint32_t kExponentMask
uint32_t AsUint32() const
static const int kPhysicalSignificandSize
◆ Infinity()
static float double_conversion::Single::Infinity |
( |
| ) |
|
|
inlinestatic |
Definition at line 421 of file ieee.h.
421 {
422 return Single(kInfinity).value();
423 }
◆ IsDenormal()
bool double_conversion::Single::IsDenormal |
( |
| ) |
const |
|
inline |
◆ IsInfinite()
bool double_conversion::Single::IsInfinite |
( |
| ) |
const |
|
inline |
Definition at line 368 of file ieee.h.
368 {
372 }
static const uint32_t kSignificandMask
◆ IsNan()
bool double_conversion::Single::IsNan |
( |
| ) |
const |
|
inline |
◆ IsQuietNan()
bool double_conversion::Single::IsQuietNan |
( |
| ) |
const |
|
inline |
Definition at line 351 of file ieee.h.
351 {
352#if (defined(__mips__) && !defined(__mips_nan2008)) || defined(__hppa__)
354#else
356#endif
357 }
static const uint32_t kQuietNanBit
◆ IsSignalingNan()
bool double_conversion::Single::IsSignalingNan |
( |
| ) |
const |
|
inline |
Definition at line 359 of file ieee.h.
359 {
360#if (defined(__mips__) && !defined(__mips_nan2008)) || defined(__hppa__)
362#else
364#endif
365 }
◆ IsSpecial()
bool double_conversion::Single::IsSpecial |
( |
| ) |
const |
|
inline |
◆ LowerBoundaryIsCloser()
bool double_conversion::Single::LowerBoundaryIsCloser |
( |
| ) |
const |
|
inline |
Definition at line 406 of file ieee.h.
406 {
407
408
409
410
411
412
413
414
416 return physical_significand_is_zero && (
Exponent() != kDenormalExponent);
417 }
◆ NaN()
static float double_conversion::Single::NaN |
( |
| ) |
|
|
inlinestatic |
Definition at line 425 of file ieee.h.
425 {
426 return Single(kNaN).value();
427 }
◆ NormalizedBoundaries()
void double_conversion::Single::NormalizedBoundaries |
( |
DiyFp * |
out_m_minus, |
|
|
DiyFp * |
out_m_plus |
|
) |
| const |
|
inline |
Definition at line 383 of file ieee.h.
383 {
387 DiyFp m_minus;
389 m_minus = DiyFp((v.f() << 2) - 1, v.e() - 2);
390 } else {
391 m_minus = DiyFp((v.f() << 1) - 1, v.e() - 1);
392 }
393 m_minus.set_f(m_minus.f() << (m_minus.e() - m_plus.e()));
394 m_minus.set_e(m_plus.e());
395 *out_m_plus = m_plus;
396 *out_m_minus = m_minus;
397 }
bool LowerBoundaryIsCloser() const
◆ Sign()
int double_conversion::Single::Sign |
( |
| ) |
const |
|
inline |
Definition at line 374 of file ieee.h.
374 {
377 }
static const uint32_t kSignMask
◆ Significand()
uint32_t double_conversion::Single::Significand |
( |
| ) |
const |
|
inline |
Definition at line 322 of file ieee.h.
322 {
327 } else {
328 return significand;
329 }
330 }
static const uint32_t kHiddenBit
◆ UpperBoundary()
DiyFp double_conversion::Single::UpperBoundary |
( |
| ) |
const |
|
inline |
◆ value()
float double_conversion::Single::value |
( |
| ) |
const |
|
inline |
Definition at line 419 of file ieee.h.
static float uint32_to_float(uint32_t d32)
◆ kExponentMask
const uint32_t double_conversion::Single::kExponentMask = 0x7F800000 |
|
static |
◆ kHiddenBit
const uint32_t double_conversion::Single::kHiddenBit = 0x00800000 |
|
static |
◆ kPhysicalSignificandSize
const int double_conversion::Single::kPhysicalSignificandSize = 23 |
|
static |
◆ kQuietNanBit
const uint32_t double_conversion::Single::kQuietNanBit = 0x00400000 |
|
static |
◆ kSignificandMask
const uint32_t double_conversion::Single::kSignificandMask = 0x007FFFFF |
|
static |
◆ kSignificandSize
const int double_conversion::Single::kSignificandSize = 24 |
|
static |
◆ kSignMask
const uint32_t double_conversion::Single::kSignMask = 0x80000000 |
|
static |
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/third_party/double-conversion/src/ieee.h