/device/google/contexthub/firmware/lib/libm/ |
D | ef_fmod.c | 37 __int32_t n,hx,hy,hz,ix,iy,sx,i; local 39 GET_FLOAT_WORD(hx,x); 41 sx = hx&0x80000000; /* sign of x */ 42 hx ^=sx; /* |x| */ 47 !FLT_UWORD_IS_FINITE(hx)|| 50 if(hx<hy) return x; /* |x|<|y| return x */ 51 if(hx==hy) 57 if(FLT_UWORD_IS_SUBNORMAL(hx)) { /* subnormal x */ 58 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; 59 } else ix = (hx>>23)-127; [all …]
|
D | ef_exp.c | 51 __uint32_t hx; local 55 hx = sx & 0x7fffffff; /* high word of |x| */ 58 if(FLT_UWORD_IS_NAN(hx)) 60 if(FLT_UWORD_IS_INFINITE(hx)) 64 if(sx < 0 && hx > FLT_UWORD_LOG_MIN) 68 if(hx > 0x3eb17218) { /* if |x| > 0.5 ln2 */ 69 if(hx < 0x3F851592) { /* and |x| < 1.5 ln2 */ 79 else if(hx < 0x31800000) { /* when |x|<2**-28 */
|
D | sf_scalbn.c | 44 __uint32_t hx; local 47 hx = ix&0x7fffffff; 48 k = hx>>23; /* extract exponent */ 49 if (FLT_UWORD_IS_ZERO(hx)) 51 if (!FLT_UWORD_IS_FINITE(hx)) 53 if (FLT_UWORD_IS_SUBNORMAL(hx)) {
|
D | ef_atan2.c | 39 __int32_t k,m,hx,hy,ix,iy; local 41 GET_FLOAT_WORD(hx,x); 42 ix = hx&0x7fffffff; 48 if(hx==0x3f800000) return atanf(y); /* x=1.0 */ 49 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ 87 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */
|
D | ef_sqrt.c | 32 __uint32_t r,hx; local 36 hx = ix&0x7fffffff; 39 if(!FLT_UWORD_IS_FINITE(hx)) 43 if(FLT_UWORD_IS_ZERO(hx)) return x;/* sqrt(+-0) = +-0 */ 48 if(FLT_UWORD_IS_SUBNORMAL(hx)) { /* subnormal x */
|
D | sf_atan.c | 75 __int32_t ix,hx,id; local 77 GET_FLOAT_WORD(hx,x); 78 ix = hx&0x7fffffff; 82 if(hx>0) return atanhi[3]+atanlo[3]; 113 return (hx<0)? -z:z;
|
D | ef_rem_pio2.c | 107 __int32_t i,j,n,ix,hx; local 110 GET_FLOAT_WORD(hx,x); 111 ix = hx&0x7fffffff; 115 if(hx>0) { 171 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;} 191 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;}
|
/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 40 EXTRACT_WORDS(hx,lx,x); in __ieee754_fmod() 42 sx = hx&0x80000000; /* sign of x */ in __ieee754_fmod() 43 hx ^=sx; /* |x| */ in __ieee754_fmod() 47 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ 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() 57 if(hx<0x00100000) { /* subnormal x */ in __ieee754_fmod() 58 if(hx==0) { in __ieee754_fmod() 61 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1; in __ieee754_fmod() [all …]
|
D | e_log10.c | 82 int32_t i,k,hx; in __ieee754_log10() local 85 EXTRACT_WORDS(hx,lx,x); in __ieee754_log10() 88 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log10() 89 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log10() 91 if (hx<0) { in __ieee754_log10() 96 GET_HIGH_WORD(hx,x); in __ieee754_log10() 98 if (hx >= 0x7ff00000) return x+x; in __ieee754_log10() 99 k += (hx>>20)-1023; in __ieee754_log10() 101 hx = (hx&0x000fffff)|((0x3ff-i)<<20); in __ieee754_log10() 103 SET_HIGH_WORD(x,hx); in __ieee754_log10()
|
D | e_log2.c | 44 int32_t k,hx,i,j; in __ieee754_log2() local 47 EXTRACT_WORDS(hx,lx,x); in __ieee754_log2() 50 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log2() 51 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log2() 53 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log2() 55 GET_HIGH_WORD(hx,x); in __ieee754_log2() 57 if (hx >= 0x7ff00000) return x+x; in __ieee754_log2() 58 k += (hx>>20)-1023; in __ieee754_log2() 59 hx &= 0x000fffff; in __ieee754_log2() 60 i = (hx+0x95f64)&0x100000; in __ieee754_log2() [all …]
|
D | e_log.c | 106 int32_t k,hx,i,j; in __ieee754_log() local 109 EXTRACT_WORDS(hx,lx,x); in __ieee754_log() 112 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log() 113 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log() 115 if (hx<0) { in __ieee754_log() 120 GET_HIGH_WORD(hx,x); in __ieee754_log() 122 if (hx >= 0x7ff00000) return x+x; in __ieee754_log() 123 k += (hx>>20)-1023; in __ieee754_log() 124 hx &= 0x000fffff; in __ieee754_log() 125 i = (hx+0x95f64)&0x100000; in __ieee754_log() [all …]
|
D | s_frexp.c | 37 int32_t hx, ix, lx; in frexp() local 38 EXTRACT_WORDS(hx,lx,x); in frexp() 39 ix = 0x7fffffff&hx; in frexp() 44 GET_HIGH_WORD(hx,x); in frexp() 45 ix = hx&0x7fffffff; in frexp() 49 hx = (hx&0x800fffff)|0x3fe00000; in frexp() 50 SET_HIGH_WORD(x,hx); in frexp()
|
D | s_scalbn.c | 37 int32_t k,hx,lx; in scalbn() local 38 EXTRACT_WORDS(hx,lx,x); in scalbn() 39 k = (hx&0x7ff00000)>>20; /* extract exponent */ in scalbn() 41 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn() 43 GET_HIGH_WORD(hx,x); in scalbn() 44 k = ((hx&0x7ff00000)>>20) - 54; in scalbn() 51 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} in scalbn() 58 SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); in scalbn()
|
D | e_exp.c | 113 u_int32_t hx; in __ieee754_exp() local 117 GET_HIGH_WORD(hx,x); in __ieee754_exp() 118 xsb = (hx>>31)&1; /* sign bit of x */ in __ieee754_exp() 119 hx &= 0x7fffffff; /* high word of |x| */ in __ieee754_exp() 122 if(hx >= 0x40862E42) { /* if |x|>=709.78... */ in __ieee754_exp() 123 if(hx>=0x7ff00000) { in __ieee754_exp() 126 if(((hx&0xfffff)|lx)!=0) in __ieee754_exp() 135 if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */ in __ieee754_exp() 136 if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ in __ieee754_exp() 146 else if(hx < 0x3e300000) { /* when |x|<2**-28 */ in __ieee754_exp()
|
D | s_expm1.c | 141 u_int32_t hx; in expm1() local 144 GET_HIGH_WORD(hx,x); in expm1() 145 xsb = hx&0x80000000; /* sign bit of x */ in expm1() 147 hx &= 0x7fffffff; /* high word of |x| */ in expm1() 150 if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */ in expm1() 151 if(hx >= 0x40862E42) { /* if |x|>=709.78... */ in expm1() 152 if(hx>=0x7ff00000) { in expm1() 155 if(((hx&0xfffff)|low)!=0) in expm1() 168 if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */ in expm1() 169 if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ in expm1() [all …]
|
D | e_atan2.c | 65 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2() local 68 EXTRACT_WORDS(hx,lx,x); in __ieee754_atan2() 69 ix = hx&0x7fffffff; in __ieee754_atan2() 75 if(((hx-0x3ff00000)|lx)==0) return atan(y); /* x=1.0 */ in __ieee754_atan2() 76 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2() 114 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */ in __ieee754_atan2()
|
D | s_atan.c | 77 int32_t ix,hx,id; in atan() local 79 GET_HIGH_WORD(hx,x); in atan() 80 ix = hx&0x7fffffff; in atan() 87 if(hx>0) return atanhi[3]+atanlo[3]; in atan() 118 return (hx<0)? -z:z; in atan()
|
D | s_finite.c | 29 int32_t hx; in finite() local 30 GET_HIGH_WORD(hx,x); in finite() 31 return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31); in finite()
|
D | s_copysign.c | 30 u_int32_t hx,hy; in copysign() local 31 GET_HIGH_WORD(hx,x); in copysign() 33 SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000)); in copysign()
|
D | e_rem_pio2.c | 80 int32_t e0,i,j,nx,n,ix,hx; in __ieee754_rem_pio2() local 84 GET_HIGH_WORD(hx,x); /* high word of x */ in __ieee754_rem_pio2() 85 ix = hx&0x7fffffff; in __ieee754_rem_pio2() 89 if(hx>0) { in __ieee754_rem_pio2() 145 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;} in __ieee754_rem_pio2() 167 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;} in __ieee754_rem_pio2()
|
D | e_acos.c | 80 int32_t hx,ix; in __ieee754_acos() local 81 GET_HIGH_WORD(hx,x); in __ieee754_acos() 82 ix = hx&0x7fffffff; in __ieee754_acos() 88 if(hx>0) return 0.0; /* acos(1) = 0 */ in __ieee754_acos() 101 else if (hx<0) { /* x < -0.5 */ in __ieee754_acos()
|
D | k_tan.c | 82 int32_t ix, hx; in __kernel_tan() local 84 GET_HIGH_WORD(hx, x); /* high word of x */ in __kernel_tan() 85 ix = hx & 0x7fffffff; /* high word of |x| */ in __kernel_tan() 110 if (hx < 0) { in __kernel_tan() 136 return (double) (1 - ((hx >> 30) & 2)) * in __kernel_tan()
|
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/ |
D | e_expf.c | 50 u_int32_t hx; in __ieee754_expf() local 52 GET_FLOAT_WORD(hx,x); in __ieee754_expf() 53 xsb = (hx>>31)&1; /* sign bit of x */ in __ieee754_expf() 54 hx &= 0x7fffffff; /* high word of |x| */ in __ieee754_expf() 57 if(hx >= 0x42b17218) { /* if |x|>=88.721... */ in __ieee754_expf() 58 if(hx>0x7f800000) in __ieee754_expf() 60 if(hx==0x7f800000) in __ieee754_expf() 67 if(hx > 0x3eb17218) { /* if |x| > 0.5 ln2 */ in __ieee754_expf() 68 if(hx < 0x3F851592) { /* and |x| < 1.5 ln2 */ in __ieee754_expf() 78 else if(hx < 0x39000000) { /* when |x|<2**-14 */ in __ieee754_expf()
|
D | e_atan2f.c | 36 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2f() local 38 GET_FLOAT_WORD(hx,x); in __ieee754_atan2f() 39 ix = hx&0x7fffffff; in __ieee754_atan2f() 45 if(hx==0x3f800000) return atanf(y); /* x=1.0 */ in __ieee754_atan2f() 46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2f() 87 else if(k<-26&&hx<0) z=0.0; /* 0 > |y|/x > -2**-26 */ in __ieee754_atan2f()
|
D | s_atanf.c | 52 int32_t ix,hx,id; in atanf() local 54 GET_FLOAT_WORD(hx,x); in atanf() 55 ix = hx&0x7fffffff; in atanf() 59 if(hx>0) return atanhi[3]+*(volatile float *)&atanlo[3]; in atanf() 90 return (hx<0)? -z:z; in atanf()
|