V8 Project
win32-math.h File Reference

Go to the source code of this file.

Enumerations

enum  {
  FP_NAN , FP_INFINITE , FP_ZERO , FP_SUBNORMAL ,
  FP_NORMAL
}
 

Functions

int std::isfinite (double x)
 
int std::isinf (double x)
 
int std::isnan (double x)
 
int std::isless (double x, double y)
 
int std::isgreater (double x, double y)
 
int std::fpclassify (double x)
 
int std::signbit (double x)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
FP_NAN 
FP_INFINITE 
FP_ZERO 
FP_SUBNORMAL 
FP_NORMAL 

Definition at line 19 of file win32-math.h.

19  {
20  FP_NAN,
22  FP_ZERO,
24  FP_NORMAL
25 };
@ FP_INFINITE
Definition: win32-math.h:21
@ FP_SUBNORMAL
Definition: win32-math.h:23
@ FP_NORMAL
Definition: win32-math.h:24
@ FP_ZERO
Definition: win32-math.h:22
@ FP_NAN
Definition: win32-math.h:20

Function Documentation

◆ fpclassify()

int std::fpclassify ( double  x)

References std::fpclassify(), and std::signbit().

Referenced by std::fpclassify().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isfinite()

int std::isfinite ( double  x)

References std::isfinite().

Referenced by std::isfinite().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isgreater()

int std::isgreater ( double  x,
double  y 
)

References std::isgreater().

Referenced by std::isgreater().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isinf()

int std::isinf ( double  x)

References std::isinf().

Referenced by std::isinf().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isless()

int std::isless ( double  x,
double  y 
)

References std::isless().

Referenced by std::isless().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isnan()

int std::isnan ( double  x)

References std::isnan().

Referenced by std::isnan().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ signbit()

int std::signbit ( double  x)

Definition at line 40 of file platform-solaris.cc.

40  {
41  // We need to take care of the special case of both positive and negative
42  // versions of zero.
43  if (x == 0) {
44  return fpclass(x) & FP_NZERO;
45  } else {
46  // This won't detect negative NaN but that should be okay since we don't
47  // assume that behavior.
48  return x < 0;
49  }
50 }

References std::signbit().

Referenced by std::fpclassify(), and std::signbit().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: