/bionic/libm/upstream-freebsd/lib/msun/src/ |
e_remainder.c | 37 int32_t hx,hp; local 41 EXTRACT_WORDS(hx,lx,x); 43 sx = hx&0x80000000; 45 hx &= 0x7fffffff; 49 if((hx>=0x7ff00000)|| /* x not finite */ 56 if (((hx-hp)|(lx-lp))==0) return zero*x; 71 GET_HIGH_WORD(hx,x); 72 if ((hx&0x7fffffff)==0) hx = 0; 73 SET_HIGH_WORD(x,hx^sx) [all...] |
s_asinh.c | 41 int32_t hx,ix; local 42 GET_HIGH_WORD(hx,x); 43 ix = hx&0x7fffffff; 57 if(hx>0) return w; else return -w;
|
s_asinhf.c | 31 int32_t hx,ix; local 32 GET_FLOAT_WORD(hx,x); 33 ix = hx&0x7fffffff; 47 if(hx>0) return w; else return -w;
|
s_cbrtf.c | 35 int32_t hx; local 39 GET_FLOAT_WORD(hx,x); 40 sign=hx&0x80000000; /* sign= sign(x) */ 41 hx ^=sign; 42 if(hx>=0x7f800000) return(x+x); /* cbrt(NaN,INF) is itself */ 45 if(hx<0x00800000) { /* zero or subnormal? */ 46 if(hx==0) 53 SET_FLOAT_WORD(t,sign|(hx/3+B1));
|
s_ccoshf.c | 45 int32_t hx, hy, ix, iy; local 50 GET_FLOAT_WORD(hx, x); 53 ix = 0x7fffffff & hx;
|
s_cexp.c | 43 uint32_t hx, hy, lx, ly; local 54 EXTRACT_WORDS(hx, lx, x); 56 if (((hx & 0x7fffffff) | lx) == 0) 60 if (lx != 0 || (hx & 0x7fffffff) != 0x7ff00000) { 63 } else if (hx & 0x80000000) { 72 if (hx >= exp_ovfl && hx <= cexp_ovfl) {
|
s_cexpf.c | 43 uint32_t hx, hy; local 54 GET_FLOAT_WORD(hx, x); 56 if ((hx & 0x7fffffff) == 0) 60 if ((hx & 0x7fffffff) != 0x7f800000) { 63 } else if (hx & 0x80000000) { 72 if (hx >= exp_ovfl && hx <= cexp_ovfl) {
|
s_csinhf.c | 45 int32_t hx, hy, ix, iy; local 50 GET_FLOAT_WORD(hx, x); 53 ix = 0x7fffffff & hx;
|
s_nextafter.c | 32 int32_t hx,hy,ix,iy; local 35 EXTRACT_WORDS(hx,lx,x); 37 ix = hx&0x7fffffff; /* |x| */ 49 if(hx>=0) { /* x > 0 */ 50 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 51 if(lx==0) hx -= 1; 55 if(lx==0) hx += 1; 58 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp * [all...] |
s_scalbn.c | 39 int32_t k,hx,lx; local 40 EXTRACT_WORDS(hx,lx,x); 41 k = (hx&0x7ff00000)>>20; /* extract exponent */ 43 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ 45 GET_HIGH_WORD(hx,x); 46 k = ((hx&0x7ff00000)>>20) - 54; 53 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} 59 SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20));
|
e_asinf.c | 39 int32_t hx,ix; local 40 GET_FLOAT_WORD(hx,x); 41 ix = hx&0x7fffffff; 64 if(hx>0) return t; else return -t;
|
e_atan2.c | 64 int32_t k,m,hx,hy,ix,iy; local 67 EXTRACT_WORDS(hx,lx,x); 68 ix = hx&0x7fffffff; 74 if((hx-0x3ff00000|lx)==0) return atan(y); /* x=1.0 */ 75 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ 116 else if(hx<0&&k<-60) z=0.0; /* 0 > |y|/x > -2**-60 */
|
e_atan2f.c | 36 int32_t k,m,hx,hy,ix,iy; local 38 GET_FLOAT_WORD(hx,x); 39 ix = hx&0x7fffffff; 45 if(hx==0x3f800000) return atanf(y); /* x=1.0 */ 46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ 87 else if(k<-26&&hx<0) z=0.0; /* 0 > |y|/x > -2**-26 */
|
e_fmod.c | 31 int32_t n,hx,hy,hz,ix,iy,sx,i; local 34 EXTRACT_WORDS(hx,lx,x); 36 sx = hx&0x80000000; /* sign of x */ 37 hx ^=sx; /* |x| */ 41 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ 44 if(hx<=hy) { 45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ 51 if(hx<0x00100000) { /* subnormal x */ 52 if(hx==0) { 55 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1 [all...] |
e_fmodf.c | 33 int32_t n,hx,hy,hz,ix,iy,sx,i; local 35 GET_FLOAT_WORD(hx,x); 37 sx = hx&0x80000000; /* sign of x */ 38 hx ^=sx; /* |x| */ 42 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */ 45 if(hx<hy) return x; /* |x|<|y| return x */ 46 if(hx==hy) 50 if(hx<0x00800000) { /* subnormal x */ 51 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; 52 } else ix = (hx>>23)-127 [all...] |
e_log2f.c | 35 int32_t i,k,hx; local 37 GET_FLOAT_WORD(hx,x); 40 if (hx < 0x00800000) { /* x < 2**-126 */ 41 if ((hx&0x7fffffff)==0) 43 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ 45 GET_FLOAT_WORD(hx,x); 47 if (hx >= 0x7f800000) return x+x; 48 if (hx == 0x3f800000) 50 k += (hx>>23)-127; 51 hx &= 0x007fffff [all...] |
e_rem_pio2f.c | 52 int32_t e0,n,ix,hx; local 54 GET_FLOAT_WORD(hx,x); 55 ix = hx&0x7fffffff; 82 if(hx<0) {*y = -ty[0]; return -n;}
|
k_exp.c | 49 uint32_t hx; local 58 GET_HIGH_WORD(hx, exp_x); 59 *expt = (hx >> 20) - (0x3ff + 1023) + k; 60 SET_HIGH_WORD(exp_x, (hx & 0xfffff) | ((0x3ff + 1023) << 20));
|
k_expf.c | 48 uint32_t hx; local 51 GET_FLOAT_WORD(hx, exp_x); 52 *expt = (hx >> 23) - (0x7f + 127) + k; 53 SET_FLOAT_WORD(exp_x, (hx & 0x7fffff) | ((0x7f + 127) << 23));
|
k_tan.c | 81 int32_t ix, hx; local 83 GET_HIGH_WORD(hx,x); 84 ix = hx & 0x7fffffff; /* high word of |x| */ 86 if (hx < 0) { 112 return (double) (1 - ((hx >> 30) & 2)) *
|
/device/google/contexthub/lib/libm/ |
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)) {
|
/external/fdlibm/ |
e_atanh.c | 51 int hx,ix; local 53 hx = __HI(x); /* high word */ 55 ix = hx&0x7fffffff; 67 if(hx>=0) return t; else return -t;
|
e_remainder.c | 39 int hx,hp; local 43 hx = __HI(x); /* high word of x */ 47 sx = hx&0x80000000; 49 hx &= 0x7fffffff; 53 if((hx>=0x7ff00000)|| /* x not finite */ 60 if (((hx-hp)|(lx-lp))==0) return zero*x;
|
s_asinh.c | 44 int hx,ix; local 45 hx = __HI(x); 46 ix = hx&0x7fffffff; 60 if(hx>0) return w; else return -w;
|
s_scalbn.c | 40 int k,hx,lx; local 41 hx = __HI(x); 43 k = (hx&0x7ff00000)>>20; /* extract exponent */ 45 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ 47 hx = __HI(x); 48 k = ((hx&0x7ff00000)>>20) - 54; 55 {__HI(x) = (hx&0x800fffff)|(k<<20); return x;} 61 __HI(x) = (hx&0x800fffff)|(k<<20);
|