Loading...
Searching...
No Matches
math.h File Reference

Architecture-specific math function calls. More...

+ Include dependency graph for math.h:
+ This graph shows which files directly or indirectly include this file:

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.
 

Functions

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

Detailed Description

Architecture-specific math function calls.

Definition in file math.h.

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846

Definition at line 41 of file math.h.