SSBM Decomp
Loading...
Searching...
No Matches
math.h File Reference
#include <platform.h>
#include <MetroTRK/intrinsics.h>

Go to the source code of this file.

Macros

#define MSL_HI(x)   *(int*) &x
 
#define MSL_LO(x)   *(1 + (int*) &x)
 
#define M_PI   3.14159265358979323846
 
#define M_PI_2   (M_PI / 2)
 
#define M_PI_3   (M_PI / 3)
 
#define FLT_EPSILON   1.00000001335e-10F
 
#define fpclassify(x)
 
#define ABS(x)   ((x) < 0 ? -(x) : (x))
 

Enumerations

enum  FloatType {
  FP_NAN = 1 ,
  FP_INFINITE = 2 ,
  FP_ZERO = 3 ,
  FP_NORMAL = 4 ,
  FP_SUBNORMAL = 5
}
 

Functions

static s32 __fpclassifyf (float x)
 
int __HI (double)
 
int __LO (double)
 
static s32 __fpclassifyd (double x)
 
static f32 fabs_inline (f32 x)
 
static double fabs (double f)
 
double frexp (double x, int *exponent)
 
float fabsf__Ff (float)
 
float tanf (float x)
 
float cos__Ff (float x)
 
float sin__Ff (float x)
 
float cosf (float x)
 
float sinf (float x)
 
void __sinit_trigf_c (void)
 
float logf (float)
 

Variables

static float const deg_to_rad = M_PI / 180
 
static float const rad_to_deg = 180 / M_PI
 

Macro Definition Documentation

◆ MSL_HI

#define MSL_HI (   x)    *(int*) &x

◆ MSL_LO

#define MSL_LO (   x)    *(1 + (int*) &x)

◆ M_PI

#define M_PI   3.14159265358979323846

◆ M_PI_2

#define M_PI_2   (M_PI / 2)

◆ M_PI_3

#define M_PI_3   (M_PI / 3)

◆ FLT_EPSILON

#define FLT_EPSILON   1.00000001335e-10F

◆ fpclassify

#define fpclassify (   x)
Value:
((sizeof(x) == sizeof(float)) ? __fpclassifyf((float) (x)) \
: __fpclassifyd((double) (x)))
static s32 __fpclassifyd(double x)
Definition math.h:55
static s32 __fpclassifyf(float x)
Definition math.h:37

◆ ABS

#define ABS (   x)    ((x) < 0 ? -(x) : (x))

Enumeration Type Documentation

◆ FloatType

enum FloatType
Enumerator
FP_NAN 
FP_INFINITE 
FP_ZERO 
FP_NORMAL 
FP_SUBNORMAL 

Function Documentation

◆ __fpclassifyf()

static s32 __fpclassifyf ( float  x)
inlinestatic

◆ __HI()

int __HI ( double  )
extern

◆ __LO()

int __LO ( double  )
extern

◆ __fpclassifyd()

static s32 __fpclassifyd ( double  x)
inlinestatic

◆ fabs_inline()

static f32 fabs_inline ( f32  x)
inlinestatic

◆ fabs()

static double fabs ( double  f)
inlinestatic

◆ frexp()

double frexp ( double  x,
int *  exponent 
)

◆ fabsf__Ff()

float fabsf__Ff ( float  param_1)

◆ tanf()

float tanf ( float  x)

◆ cos__Ff()

float cos__Ff ( float  x)

◆ sin__Ff()

float sin__Ff ( float  x)

◆ cosf()

float cosf ( float  x)

◆ sinf()

float sinf ( float  x)

◆ __sinit_trigf_c()

void __sinit_trigf_c ( void  )

◆ logf()

float logf ( float  x)

Variable Documentation

◆ deg_to_rad

float const deg_to_rad = M_PI / 180
static

◆ rad_to_deg

float const rad_to_deg = 180 / M_PI
static