/device/google/contexthub/firmware/lib/libm/ |
D | ef_fmod.c | 37 __int32_t n,hx,hy,hz,ix,iy,sx,i; local 40 GET_FLOAT_WORD(hy,y); 43 hy &= 0x7fffffff; /* |y| */ 46 if(FLT_UWORD_IS_ZERO(hy)|| 48 FLT_UWORD_IS_NAN(hy)) 50 if(hx<hy) return x; /* |x|<|y| return x */ 51 if(hx==hy) 62 if(FLT_UWORD_IS_SUBNORMAL(hy)) { /* subnormal y */ 63 for (iy = -126,i=(hy<<8); i>=0; i<<=1) iy -=1; 64 } else iy = (hy>>23)-127; [all …]
|
D | ef_atan2.c | 39 __int32_t k,m,hx,hy,ix,iy; local 43 GET_FLOAT_WORD(hy,y); 44 iy = hy&0x7fffffff; 49 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ 61 if(FLT_UWORD_IS_ZERO(ix)) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; 82 if(FLT_UWORD_IS_INFINITE(iy)) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny;
|
D | ef_exp.c | 89 __uint32_t hy; local 90 GET_FLOAT_WORD(hy,y); 91 SET_FLOAT_WORD(y,hy+(k<<23)); /* add k to y's exponent */ 94 __uint32_t hy; local 95 GET_FLOAT_WORD(hy,y); 96 SET_FLOAT_WORD(y,hy+((k+100)<<23)); /* add k to y's exponent */
|
D | ef_pow.c | 69 __int32_t hx,hy,ix,iy,is; local 72 GET_FLOAT_WORD(hy,y); 73 ix = hx&0x7fffffff; iy = hy&0x7fffffff; 105 return (hy>=0)? y: zero; 107 return (hy<0)?-y: zero; 110 if(hy<0) return one/x; else return x; 112 if(hy==0x40000000) return x*x; /* y is 2 */ 113 if(hy==0x3f000000) { /* y is 0.5 */ 122 if(hy<0) z = one/z; /* z = (1/|x|) */ 138 if(ix<0x3f7ffff8) return (hy<0)? huge*huge:tiny*tiny; [all …]
|
/device/linaro/bootloader/edk2/StdLib/LibC/Math/ |
D | e_fmod.c | 37 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmod() local 41 EXTRACT_WORDS(hy,ly,y); in __ieee754_fmod() 44 hy &= 0x7fffffff; /* |y| */ in __ieee754_fmod() 47 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in __ieee754_fmod() 48 ((hy|((ly|-ly)>>31))>0x7ff00000)) /* or y is NaN */ in __ieee754_fmod() 50 if(hx<=hy) { in __ieee754_fmod() 51 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in __ieee754_fmod() 66 if(hy<0x00100000) { /* subnormal y */ in __ieee754_fmod() 67 if(hy==0) { in __ieee754_fmod() 70 for (iy = -1022,i=(hy<<11); i>0; i<<=1) iy -=1; in __ieee754_fmod() [all …]
|
D | e_atan2.c | 65 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2() local 70 EXTRACT_WORDS(hy,ly,y); in __ieee754_atan2() 71 iy = hy&0x7fffffff; in __ieee754_atan2() 76 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2() 88 if((ix|lx)==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2() 109 if(iy==0x7ff00000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2()
|
D | e_exp.c | 157 u_int32_t hy; in __ieee754_exp() local 158 GET_HIGH_WORD(hy,y); in __ieee754_exp() 159 SET_HIGH_WORD(y,hy+(k<<20)); /* add k to y's exponent */ in __ieee754_exp() 162 u_int32_t hy; in __ieee754_exp() local 163 GET_HIGH_WORD(hy,y); in __ieee754_exp() 164 SET_HIGH_WORD(y,hy+((k+1000)<<20)); /* add k to y's exponent */ in __ieee754_exp()
|
D | e_pow.c | 123 int32_t hx,hy,ix,iy; in __ieee754_pow() local 127 EXTRACT_WORDS(hy,ly,y); in __ieee754_pow() 128 ix = hx&0x7fffffff; iy = hy&0x7fffffff; in __ieee754_pow() 164 return (hy>=0)? y: zero; in __ieee754_pow() 166 return (hy<0)?-y: zero; in __ieee754_pow() 169 if(hy<0) return one/x; else return x; in __ieee754_pow() 171 if(hy==0x40000000) return x*x; /* y is 2 */ in __ieee754_pow() 172 if(hy==0x3fe00000) { /* y is 0.5 */ in __ieee754_pow() 183 if(hy<0) z = one/z; /* z = (1/|x|) */ in __ieee754_pow() 208 if(ix<=0x3fefffff) return (hy<0)? huge*huge:tiny*tiny; in __ieee754_pow() [all …]
|
D | s_copysign.c | 30 u_int32_t hx,hy; in copysign() local 32 GET_HIGH_WORD(hy,y); in copysign() 33 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); in copysign()
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | e_atan2f.c | 36 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2f() local 40 GET_FLOAT_WORD(hy,y); in __ieee754_atan2f() 41 iy = hy&0x7fffffff; in __ieee754_atan2f() 46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2f() 58 if(ix==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2f() 79 if(iy==0x7f800000) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2f()
|