Numworks Epsilon  1.4.1
Graphing Calculator Operating System
math_private.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Classes

union  ieee_quad_shape_type
 
union  ieee_quad_shape_type
 
union  ieee_extended_shape_type
 
union  ieee_extended_shape_type
 
union  ieee_double_shape_type
 
union  ieee_double_shape_type
 
union  ieee_float_shape_type
 
struct  Double
 

Macros

#define GET_LDOUBLE_WORDS64(ix0, ix1, d)
 
#define SET_LDOUBLE_WORDS64(d, ix0, ix1)
 
#define GET_LDOUBLE_MSW64(v, d)
 
#define SET_LDOUBLE_MSW64(d, v)
 
#define GET_LDOUBLE_LSW64(v, d)
 
#define GET_LDOUBLE_WORDS(se, ix0, ix1, d)
 
#define SET_LDOUBLE_WORDS(d, se, ix0, ix1)
 
#define GET_LDOUBLE_MSW(v, d)
 
#define SET_LDOUBLE_MSW(d, v)
 
#define GET_LDOUBLE_EXP(se, d)
 
#define SET_LDOUBLE_EXP(d, se)
 
#define EXTRACT_WORDS(ix0, ix1, d)
 
#define GET_HIGH_WORD(i, d)
 
#define GET_LOW_WORD(i, d)
 
#define INSERT_WORDS(d, ix0, ix1)
 
#define SET_HIGH_WORD(d, v)
 
#define SET_LOW_WORD(d, v)
 
#define GET_FLOAT_WORD(i, d)
 
#define SET_FLOAT_WORD(d, i)
 
#define TRUNC(d)   (_b_trunc(&(d)))
 

Functions

int __ieee754_rem_pio2 (double, double *)
 
double __kernel_sin (double, double, int)
 
double __kernel_cos (double, double)
 
double __kernel_tan (double, double, int)
 
int __kernel_rem_pio2 (double *, double *, int, int, int)
 
int __ieee754_rem_pio2f (float, float *)
 
float __kernel_sinf (float, float, int)
 
float __kernel_cosf (float, float)
 
float __kernel_tanf (float, float, int)
 
int __kernel_rem_pio2f (float *, float *, int, int, int, const int *)
 
long double __kernel_sinl (long double, long double, int)
 
long double __kernel_cosl (long double, long double)
 
long double __kernel_tanl (long double, long double, int)
 
void _scan_nan (uint32_t *__words, int __num_words, const char *__s)
 
double __exp__D (double, double)
 
struct Double __log__D (double)
 
long double __p1evll (long double, void *, int)
 
long double __polevll (long double, void *, int)
 

Macro Definition Documentation

◆ EXTRACT_WORDS

#define EXTRACT_WORDS (   ix0,
  ix1,
 
)
Value:
do { \
ieee_double_shape_type ew_u; \
ew_u.value = (d); \
(ix0) = ew_u.parts.msw; \
(ix1) = ew_u.parts.lsw; \
} while (0)

Definition at line 259 of file math_private.h.

◆ GET_FLOAT_WORD

#define GET_FLOAT_WORD (   i,
 
)
Value:
do { \
ieee_float_shape_type gf_u; \
gf_u.value = (d); \
(i) = gf_u.word; \
} while (0)

Definition at line 326 of file math_private.h.

◆ GET_HIGH_WORD

#define GET_HIGH_WORD (   i,
 
)
Value:
do { \
ieee_double_shape_type gh_u; \
gh_u.value = (d); \
(i) = gh_u.parts.msw; \
} while (0)

Definition at line 269 of file math_private.h.

◆ GET_LDOUBLE_EXP

#define GET_LDOUBLE_EXP (   se,
 
)
Value:
do { \
ieee_extended_shape_type ge_u; \
ge_u.value = (d); \
(se) = ge_u.parts.exp; \
} while (0)

Definition at line 204 of file math_private.h.

◆ GET_LDOUBLE_LSW64

#define GET_LDOUBLE_LSW64 (   v,
 
)
Value:
do { \
ieee_quad_shape_type sh_u; \
sh_u.value = (d); \
(v) = sh_u.parts64.lsw; \
} while (0)

Definition at line 115 of file math_private.h.

◆ GET_LDOUBLE_MSW

#define GET_LDOUBLE_MSW (   v,
 
)
Value:
do { \
ieee_extended_shape_type sh_u; \
sh_u.value = (d); \
(v) = sh_u.parts.msw; \
} while (0)

Definition at line 185 of file math_private.h.

◆ GET_LDOUBLE_MSW64

#define GET_LDOUBLE_MSW64 (   v,
 
)
Value:
do { \
ieee_quad_shape_type sh_u; \
sh_u.value = (d); \
(v) = sh_u.parts64.msw; \
} while (0)

Definition at line 96 of file math_private.h.

◆ GET_LDOUBLE_WORDS

#define GET_LDOUBLE_WORDS (   se,
  ix0,
  ix1,
 
)
Value:
do { \
ieee_extended_shape_type ew_u; \
ew_u.value = (d); \
(se) = ew_u.parts.exp; \
(ix0) = ew_u.parts.msw; \
(ix1) = ew_u.parts.lsw; \
} while (0)

Definition at line 163 of file math_private.h.

◆ GET_LDOUBLE_WORDS64

#define GET_LDOUBLE_WORDS64 (   ix0,
  ix1,
 
)
Value:
do { \
ieee_quad_shape_type qw_u; \
qw_u.value = (d); \
(ix0) = qw_u.parts64.msw; \
(ix1) = qw_u.parts64.lsw; \
} while (0)

Definition at line 76 of file math_private.h.

◆ GET_LOW_WORD

#define GET_LOW_WORD (   i,
 
)
Value:
do { \
ieee_double_shape_type gl_u; \
gl_u.value = (d); \
(i) = gl_u.parts.lsw; \
} while (0)

Definition at line 278 of file math_private.h.

◆ INSERT_WORDS

#define INSERT_WORDS (   d,
  ix0,
  ix1 
)
Value:
do { \
ieee_double_shape_type iw_u; \
iw_u.parts.msw = (ix0); \
iw_u.parts.lsw = (ix1); \
(d) = iw_u.value; \
} while (0)

Definition at line 287 of file math_private.h.

◆ SET_FLOAT_WORD

#define SET_FLOAT_WORD (   d,
 
)
Value:
do { \
ieee_float_shape_type sf_u; \
sf_u.word = (i); \
(d) = sf_u.value; \
} while (0)

Definition at line 335 of file math_private.h.

◆ SET_HIGH_WORD

#define SET_HIGH_WORD (   d,
 
)
Value:
do { \
ieee_double_shape_type sh_u; \
sh_u.value = (d); \
sh_u.parts.msw = (v); \
(d) = sh_u.value; \
} while (0)

Definition at line 297 of file math_private.h.

◆ SET_LDOUBLE_EXP

#define SET_LDOUBLE_EXP (   d,
  se 
)
Value:
do { \
ieee_extended_shape_type se_u; \
se_u.value = (d); \
se_u.parts.exp = (se); \
(d) = se_u.value; \
} while (0)

Definition at line 213 of file math_private.h.

◆ SET_LDOUBLE_MSW

#define SET_LDOUBLE_MSW (   d,
 
)
Value:
do { \
ieee_extended_shape_type sh_u; \
sh_u.value = (d); \
sh_u.parts.msw = (v); \
(d) = sh_u.value; \
} while (0)

Definition at line 194 of file math_private.h.

◆ SET_LDOUBLE_MSW64

#define SET_LDOUBLE_MSW64 (   d,
 
)
Value:
do { \
ieee_quad_shape_type sh_u; \
sh_u.value = (d); \
sh_u.parts64.msw = (v); \
(d) = sh_u.value; \
} while (0)

Definition at line 105 of file math_private.h.

◆ SET_LDOUBLE_WORDS

#define SET_LDOUBLE_WORDS (   d,
  se,
  ix0,
  ix1 
)
Value:
do { \
ieee_extended_shape_type iw_u; \
iw_u.parts.exp = (se); \
iw_u.parts.msw = (ix0); \
iw_u.parts.lsw = (ix1); \
(d) = iw_u.value; \
} while (0)

Definition at line 174 of file math_private.h.

◆ SET_LDOUBLE_WORDS64

#define SET_LDOUBLE_WORDS64 (   d,
  ix0,
  ix1 
)
Value:
do { \
ieee_quad_shape_type qw_u; \
qw_u.parts64.msw = (ix0); \
qw_u.parts64.lsw = (ix1); \
(d) = qw_u.value; \
} while (0)

Definition at line 86 of file math_private.h.

◆ SET_LOW_WORD

#define SET_LOW_WORD (   d,
 
)
Value:
do { \
ieee_double_shape_type sl_u; \
sl_u.value = (d); \
sl_u.parts.lsw = (v); \
(d) = sl_u.value; \
} while (0)

Definition at line 307 of file math_private.h.

◆ TRUNC

#define TRUNC (   d)    (_b_trunc(&(d)))

Definition at line 393 of file math_private.h.

Function Documentation

◆ __exp__D()

double __exp__D ( double  ,
double   
)

Definition at line 84 of file b_exp__D.c.

◆ __ieee754_rem_pio2()

int __ieee754_rem_pio2 ( double  ,
double *   
)

Definition at line 54 of file e_rem_pio2.c.

◆ __ieee754_rem_pio2f()

int __ieee754_rem_pio2f ( float  ,
float *   
)

Definition at line 87 of file e_rem_pio2f.c.

◆ __kernel_cos()

double __kernel_cos ( double  ,
double   
)

Definition at line 61 of file k_cos.c.

◆ __kernel_cosf()

float __kernel_cosf ( float  ,
float   
)

Definition at line 29 of file k_cosf.c.

◆ __kernel_cosl()

long double __kernel_cosl ( long  double,
long  double 
)

◆ __kernel_rem_pio2()

int __kernel_rem_pio2 ( double *  ,
double *  ,
int  ,
int  ,
int   
)

Definition at line 285 of file k_rem_pio2.c.

◆ __kernel_rem_pio2f()

int __kernel_rem_pio2f ( float *  ,
float *  ,
int  ,
int  ,
int  ,
const int *   
)

◆ __kernel_sin()

double __kernel_sin ( double  ,
double  ,
int   
)

Definition at line 54 of file k_sin.c.

◆ __kernel_sinf()

float __kernel_sinf ( float  ,
float  ,
int   
)

Definition at line 29 of file k_sinf.c.

◆ __kernel_sinl()

long double __kernel_sinl ( long  double,
long  double,
int   
)

◆ __kernel_tan()

double __kernel_tan ( double  ,
double  ,
int   
)

Definition at line 74 of file k_tan.c.

◆ __kernel_tanf()

float __kernel_tanf ( float  ,
float  ,
int   
)

Definition at line 40 of file k_tanf.c.

◆ __kernel_tanl()

long double __kernel_tanl ( long  double,
long  double,
int   
)

◆ __log__D()

struct Double __log__D ( double  )

Definition at line 354 of file b_log__D.c.

◆ __p1evll()

long double __p1evll ( long  double,
void *  ,
int   
)

◆ __polevll()

long double __polevll ( long  double,
void *  ,
int   
)

◆ _scan_nan()

void _scan_nan ( uint32_t __words,
int  __num_words,
const char *  __s 
)