ArchWizard

DGD/

source navigation ]
diff markup ]
identifier search ]
file search ]
Version: [ 1.0.a0 ] [ 1.1 ] [ 1.2 ] [ 1.2p1 ] [ 1.2p2 ] [ 1.2p3 ] [ 1.2p4 ] [ 1.2.151 ]

  1 typedef struct {
  2     unsigned short high;        /* high word of float */
  3     Uint low;                   /* low longword of float */
  4 } xfloat;                       /* 1 sign, 11 exponent, 36 mantissa */
  5 
  6 # define FLT_ISZERO(h, l)       ((h) == 0)
  7 # define FLT_ISNEG(h, l)        ((h) & 0x8000)
  8 # define FLT_ISONE(h, l)        ((h) == 0x3ff0 && (l) == 0L)
  9 # define FLT_ISMONE(h, l)       ((h) == 0xbff0 && (l) == 0L)
 10 # define FLT_ZERO(h, l)         ((h) = 0, (l) = 0L)
 11 # define FLT_ONE(h, l)          ((h) = 0x3ff0, (l) = 0L)
 12 # define FLT_ABS(h, l)          ((h) &= ~0x8000)
 13 # define FLT_NEG(h, l)          ((h) ^= 0x8000)
 14 
 15 extern bool     flt_atof        P((char**, xfloat*));
 16 extern void     flt_ftoa        P((xfloat*, char*));
 17 extern void     flt_itof        P((Int, xfloat*));
 18 extern Int      flt_ftoi        P((xfloat*));
 19 
 20 extern void     flt_add         P((xfloat*, xfloat*));
 21 extern void     flt_sub         P((xfloat*, xfloat*));
 22 extern void     flt_mult        P((xfloat*, xfloat*));
 23 extern void     flt_div         P((xfloat*, xfloat*));
 24 extern int      flt_cmp         P((xfloat*, xfloat*));
 25 extern void     flt_floor       P((xfloat*));
 26 extern void     flt_ceil        P((xfloat*));
 27 extern void     flt_fmod        P((xfloat*, xfloat*));
 28 extern Int      flt_frexp       P((xfloat*));
 29 extern void     flt_ldexp       P((xfloat*, Int));
 30 extern void     flt_modf        P((xfloat*, xfloat*));
 31 
 32 extern void     flt_exp         P((xfloat*));
 33 extern void     flt_log         P((xfloat*));
 34 extern void     flt_log10       P((xfloat*));
 35 extern void     flt_pow         P((xfloat*, xfloat*));
 36 extern void     flt_sqrt        P((xfloat*));
 37 extern void     flt_cos         P((xfloat*));
 38 extern void     flt_sin         P((xfloat*));
 39 extern void     flt_tan         P((xfloat*));
 40 extern void     flt_acos        P((xfloat*));
 41 extern void     flt_asin        P((xfloat*));
 42 extern void     flt_atan        P((xfloat*));
 43 extern void     flt_atan2       P((xfloat*, xfloat*));
 44 extern void     flt_cosh        P((xfloat*));
 45 extern void     flt_sinh        P((xfloat*));
 46 extern void     flt_tanh        P((xfloat*));
 47 
 48 extern xfloat sixty, thousand, thousandth;
 49 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.