/bionic/libm/src/ |
D | e_fmod.c | 33 u_int32_t lx,ly,lz; in __ieee754_fmod() local 35 EXTRACT_WORDS(hx,lx,x); in __ieee754_fmod() 46 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in __ieee754_fmod() 47 if(lx==ly) in __ieee754_fmod() 54 for (ix = -1043, i=lx; i>0; i<<=1) ix -=1; in __ieee754_fmod() 75 hx = (hx<<n)|(lx>>(32-n)); in __ieee754_fmod() 76 lx <<= n; in __ieee754_fmod() 78 hx = lx<<(n-32); in __ieee754_fmod() 79 lx = 0; in __ieee754_fmod() 98 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in __ieee754_fmod() [all …]
|
D | s_nextafter.c | 35 u_int32_t lx,ly; in nextafter() local 37 EXTRACT_WORDS(hx,lx,x); in nextafter() 42 if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || /* x is nan */ in nextafter() 46 if((ix|lx)==0) { /* x == 0 */ in nextafter() 52 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafter() 53 if(lx==0) hx -= 1; in nextafter() 54 lx -= 1; in nextafter() 56 lx += 1; in nextafter() 57 if(lx==0) hx += 1; in nextafter() 60 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafter() [all …]
|
D | s_remquo.c | 33 u_int32_t lx,ly,lz,q,sxy; in remquo() local 35 EXTRACT_WORDS(hx,lx,x); in remquo() 47 if((hx<hy)||(lx<ly)) { in remquo() 51 if(lx==ly) { in remquo() 60 for (ix = -1043, i=lx; i>0; i<<=1) ix -=1; in remquo() 81 hx = (hx<<n)|(lx>>(32-n)); in remquo() 82 lx <<= n; in remquo() 84 hx = lx<<(n-32); in remquo() 85 lx = 0; in remquo() 105 hz=hx-hy;lz=lx-ly; if(lx<ly) hz -= 1; in remquo() [all …]
|
D | s_ilogb.c | 31 int32_t hx,lx,ix; in ilogb() local 33 EXTRACT_WORDS(hx,lx,x); in ilogb() 36 if((hx|lx)==0) in ilogb() 40 for (ix = -1043; lx>0; lx<<=1) ix -=1; in ilogb() 47 else if (hx>0x7ff00000 || lx!=0) return FP_ILOGBNAN; in ilogb()
|
D | s_nexttoward.c | 39 u_int32_t lx; in nexttoward() local 41 EXTRACT_WORDS(hx,lx,x); in nexttoward() 45 if(((ix>=0x7ff00000)&&((ix-0x7ff00000)|lx)!=0) || in nexttoward() 56 if(lx==0) hx -= 1; in nexttoward() 57 lx -= 1; in nexttoward() 59 lx += 1; in nexttoward() 60 if(lx==0) hx += 1; in nexttoward() 67 INSERT_WORDS(y,hx,lx); in nexttoward() 71 INSERT_WORDS(x,hx,lx); in nexttoward()
|
D | s_logb.c | 32 int32_t lx,ix; in logb() local 33 EXTRACT_WORDS(ix,lx,x); in logb() 35 if((ix|lx)==0) return -1.0/fabs(x); in logb()
|
D | e_atanh.c | 48 u_int32_t lx; in __ieee754_atanh() local 49 EXTRACT_WORDS(hx,lx,x); in __ieee754_atanh() 51 if ((ix|((lx|(-lx))>>31))>0x3ff00000) /* |x|>1 */ in __ieee754_atanh()
|
D | e_atan2.c | 62 u_int32_t lx,ly; in __ieee754_atan2() local 64 EXTRACT_WORDS(hx,lx,x); in __ieee754_atan2() 68 if(((ix|((lx|-lx)>>31))>0x7ff00000)|| in __ieee754_atan2() 71 if(((hx-0x3ff00000) | lx)==0) return atan(y); /* x=1.0 */ in __ieee754_atan2() 84 if((ix|lx)==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny; in __ieee754_atan2()
|
D | s_frexp.c | 39 int32_t hx, ix, lx; in frexp() local 40 EXTRACT_WORDS(hx,lx,x); in frexp() 43 if(ix>=0x7ff00000||((ix|lx)==0)) return x; /* 0,inf,nan */ in frexp()
|
D | e_acosh.c | 45 u_int32_t lx; in __ieee754_acosh() local 46 EXTRACT_WORDS(hx,lx,x); in __ieee754_acosh() 54 } else if(((hx-0x3ff00000)|lx)==0) { in __ieee754_acosh()
|
D | e_log10.c | 67 u_int32_t lx; in __ieee754_log10() local 69 EXTRACT_WORDS(hx,lx,x); in __ieee754_log10() 73 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log10()
|
D | e_sinh.c | 46 u_int32_t lx; in __ieee754_sinh() local 70 GET_LOW_WORD(lx,x); in __ieee754_sinh() 71 if (ix<0x408633CE || ((ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d))) { in __ieee754_sinh()
|
D | e_cosh.c | 49 u_int32_t lx; in __ieee754_cosh() local 76 GET_LOW_WORD(lx,x); in __ieee754_cosh() 78 ((ix==0x408633ce)&&(lx<=(u_int32_t)0x8fb9f87d))) { in __ieee754_cosh()
|
D | e_jn.c | 57 int32_t i,hx,ix,lx, sgn; in __ieee754_jn() local 64 EXTRACT_WORDS(hx,lx,x); in __ieee754_jn() 67 if((ix|((u_int32_t)(lx|-lx))>>31)>0x7ff00000) return x+x; in __ieee754_jn() 77 if((ix|lx)==0||ix>=0x7ff00000) /* if x is 0 or inf */ in __ieee754_jn() 213 int32_t i,hx,ix,lx; in __ieee754_yn() local 217 EXTRACT_WORDS(hx,lx,x); in __ieee754_yn() 220 if((ix|((u_int32_t)(lx|-lx))>>31)>0x7ff00000) return x+x; in __ieee754_yn() 221 if((ix|lx)==0) return -one/zero; in __ieee754_yn()
|
D | e_remainder.c | 37 u_int32_t sx,lx,lp; in __ieee754_remainder() local 40 EXTRACT_WORDS(hx,lx,x); in __ieee754_remainder() 55 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder()
|
D | s_scalbn.c | 39 int32_t k,hx,lx; in scalbn() local 40 EXTRACT_WORDS(hx,lx,x); in scalbn() 43 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn()
|
D | s_exp2.c | 341 uint32_t hx, hr, ix, lx, i0; in exp2() local 349 GET_LOW_WORD(lx,x); in exp2() 350 if(((ix & 0xfffff) | lx) != 0 || (hx & 0x80000000) == 0) in exp2()
|
D | e_exp.c | 116 u_int32_t lx; in __ieee754_exp() local 117 GET_LOW_WORD(lx,x); in __ieee754_exp() 118 if(((hx&0xfffff)|lx)!=0) in __ieee754_exp()
|
D | e_asin.c | 78 u_int32_t lx; in __ieee754_asin() local 79 GET_LOW_WORD(lx,x); in __ieee754_asin() 80 if(((ix-0x3ff00000)|lx)==0) in __ieee754_asin()
|
D | e_log.c | 91 u_int32_t lx; in __ieee754_log() local 93 EXTRACT_WORDS(hx,lx,x); in __ieee754_log() 97 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log()
|
D | e_acos.c | 69 u_int32_t lx; in __ieee754_acos() local 70 GET_LOW_WORD(lx,x); in __ieee754_acos() 71 if(((ix-0x3ff00000)|lx)==0) { /* |x|==1 */ in __ieee754_acos()
|
D | e_lgamma_r.c | 208 int i,hx,lx,ix; in __ieee754_lgamma_r() local 210 EXTRACT_WORDS(hx,lx,x); in __ieee754_lgamma_r() 216 if((ix|lx)==0) return one/zero; in __ieee754_lgamma_r() 234 if((((ix-0x3ff00000)|lx)==0)||(((ix-0x40000000)|lx)==0)) r = 0; in __ieee754_lgamma_r()
|
D | e_pow.c | 104 u_int32_t lx,ly; in __ieee754_pow() local 106 EXTRACT_WORDS(hx,lx,x); in __ieee754_pow() 114 if(ix > 0x7ff00000 || ((ix==0x7ff00000)&&(lx!=0)) || in __ieee754_pow() 141 if(((ix-0x3ff00000)|lx)==0) in __ieee754_pow() 160 if(lx==0) { in __ieee754_pow()
|
D | e_j1.c | 147 int32_t hx,ix,lx; in __ieee754_y1() local 149 EXTRACT_WORDS(hx,lx,x); in __ieee754_y1() 153 if((ix|lx)==0) return -one/zero; in __ieee754_y1()
|
/bionic/libc/bionic/ |
D | ldexp.c | 99 int32_t k,hx,lx; in ldexp() local 100 EXTRACT_WORDS(hx,lx,x); in ldexp() 103 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in ldexp()
|