All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
math.h File Reference

Architecture-specific math function calls. More...

+ Include dependency graph for math.h:

Go to the source code of this file.

Macros

#define M_PI   3.14159265358979323846
 
#define ARCH_MIN_FLOAT_EPS_SQR   0.000244141F
 This is the smallest value e such that 1+e^2 == 1, using floats. More...
 

Functions

long ArchSign (long val)
 Three-valued sign. Return 1 if val > 0, 0 if val == 0, or -1 if val < 0. More...
 
uint32_t ArchFloatToBitPattern (float v)
 Returns The IEEE-754 bit pattern of the specified single precision value as a 32-bit unsigned integer. More...
 
float ArchBitPatternToFloat (uint32_t v)
 Returns The single precision floating point value corresponding to the given IEEE-754 bit pattern. More...
 
uint64_t ArchDoubleToBitPattern (double v)
 Returns The IEEE-754 bit pattern of the specified double precision value as a 64-bit unsigned integer. More...
 
double ArchBitPatternToDouble (uint64_t v)
 Returns The double precision floating point value corresponding to the given IEEE-754 bit pattern. More...
 
void ArchSinCosf (float v, float *s, float *c)
 Computes the sine and cosine of the specified value as a float. More...
 
void ArchSinCos (double v, double *s, double *c)
 Computes the sine and cosine of the specified value as a double. More...
 

Detailed Description

Architecture-specific math function calls.

Definition in file math.h.