/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_fmodf.c | 33 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmodf() local 35 GET_FLOAT_WORD(hx,x); in __ieee754_fmodf() 37 sx = hx&0x80000000; /* sign of x */ in __ieee754_fmodf() 38 hx ^=sx; /* |x| */ in __ieee754_fmodf() 42 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */ in __ieee754_fmodf() 45 if(hx<hy) return x; /* |x|<|y| return x */ in __ieee754_fmodf() 46 if(hx==hy) in __ieee754_fmodf() 50 if(hx<0x00800000) { /* subnormal x */ in __ieee754_fmodf() 51 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; in __ieee754_fmodf() 52 } else ix = (hx>>23)-127; in __ieee754_fmodf() [all …]
|
D | s_ilogbf.c | 26 int32_t hx,ix; in ilogbf() local 28 GET_FLOAT_WORD(hx,x); in ilogbf() 29 hx &= 0x7fffffff; in ilogbf() 30 if(hx<0x00800000) { in ilogbf() 31 if(hx==0) in ilogbf() 34 for (ix = -126,hx<<=8; hx>0; hx<<=1) ix -=1; in ilogbf() 37 else if (hx<0x7f800000) return (hx>>23)-127; in ilogbf() 38 else if (hx>0x7f800000) return FP_ILOGBNAN; in ilogbf()
|
D | s_ilogb.c | 30 int32_t hx,lx,ix; in ilogb() local 32 EXTRACT_WORDS(hx,lx,x); in ilogb() 33 hx &= 0x7fffffff; in ilogb() 34 if(hx<0x00100000) { in ilogb() 35 if((hx|lx)==0) in ilogb() 38 if(hx==0) { in ilogb() 41 for (ix = -1022,hx<<=11; hx>0; hx<<=1) ix -=1; in ilogb() 45 else if (hx<0x7ff00000) return (hx>>20)-1023; in ilogb() 46 else if (hx>0x7ff00000 || lx!=0) return FP_ILOGBNAN; in ilogb()
|
D | s_remquof.c | 32 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquof() local 35 GET_FLOAT_WORD(hx,x); in remquof() 37 sxy = (hx ^ hy) & 0x80000000; in remquof() 38 sx = hx&0x80000000; /* sign of x */ in remquof() 39 hx ^=sx; /* |x| */ in remquof() 43 if(hy==0||hx>=0x7f800000||hy>0x7f800000) /* y=0,NaN;or x not finite */ in remquof() 45 if(hx<hy) { in remquof() 48 } else if(hx==hy) { in remquof() 54 if(hx<0x00800000) { /* subnormal x */ in remquof() 55 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; in remquof() [all …]
|
D | e_fmod.c | 31 int32_t n,hx,hy,hz,ix,iy,sx,i; in __ieee754_fmod() local 34 EXTRACT_WORDS(hx,lx,x); in __ieee754_fmod() 36 sx = hx&0x80000000; /* sign of x */ in __ieee754_fmod() 37 hx ^=sx; /* |x| */ in __ieee754_fmod() 41 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in __ieee754_fmod() 44 if(hx<=hy) { in __ieee754_fmod() 45 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ in __ieee754_fmod() 51 if(hx<0x00100000) { /* subnormal x */ in __ieee754_fmod() 52 if(hx==0) { in __ieee754_fmod() 55 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1; in __ieee754_fmod() [all …]
|
D | s_remquo.c | 34 int32_t n,hx,hy,hz,ix,iy,sx,i; in remquo() local 37 EXTRACT_WORDS(hx,lx,x); in remquo() 39 sxy = (hx ^ hy) & 0x80000000; in remquo() 40 sx = hx&0x80000000; /* sign of x */ in remquo() 41 hx ^=sx; /* |x| */ in remquo() 45 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ in remquo() 48 if(hx<=hy) { in remquo() 49 if((hx<hy)||(lx<ly)) { in remquo() 60 if(hx<0x00100000) { /* subnormal x */ in remquo() 61 if(hx==0) { in remquo() [all …]
|
D | s_nextafterf.c | 26 int32_t hx,hy,ix,iy; in nextafterf() local 28 GET_FLOAT_WORD(hx,x); in nextafterf() 30 ix = hx&0x7fffffff; /* |x| */ in nextafterf() 42 if(hx>=0) { /* x > 0 */ in nextafterf() 43 if(hx>hy) { /* x > y, x -= ulp */ in nextafterf() 44 hx -= 1; in nextafterf() 46 hx += 1; in nextafterf() 49 if(hy>=0||hx>hy){ /* x < y, x -= ulp */ in nextafterf() 50 hx -= 1; in nextafterf() 52 hx += 1; in nextafterf() [all …]
|
D | e_log2f.c | 35 int32_t i,k,hx; in __ieee754_log2f() local 37 GET_FLOAT_WORD(hx,x); in __ieee754_log2f() 40 if (hx < 0x00800000) { /* x < 2**-126 */ in __ieee754_log2f() 41 if ((hx&0x7fffffff)==0) in __ieee754_log2f() 43 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log2f() 45 GET_FLOAT_WORD(hx,x); in __ieee754_log2f() 47 if (hx >= 0x7f800000) return x+x; in __ieee754_log2f() 48 if (hx == 0x3f800000) in __ieee754_log2f() 50 k += (hx>>23)-127; in __ieee754_log2f() 51 hx &= 0x007fffff; in __ieee754_log2f() [all …]
|
D | s_nextafter.c | 32 int32_t hx,hy,ix,iy; in nextafter() local 35 EXTRACT_WORDS(hx,lx,x); in nextafter() 37 ix = hx&0x7fffffff; /* |x| */ in nextafter() 49 if(hx>=0) { /* x > 0 */ in nextafter() 50 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ in nextafter() 51 if(lx==0) hx -= 1; in nextafter() 55 if(lx==0) hx += 1; in nextafter() 58 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ in nextafter() 59 if(lx==0) hx -= 1; in nextafter() 63 if(lx==0) hx += 1; in nextafter() [all …]
|
D | e_log10f.c | 37 int32_t i,k,hx; in __ieee754_log10f() local 39 GET_FLOAT_WORD(hx,x); in __ieee754_log10f() 42 if (hx < 0x00800000) { /* x < 2**-126 */ in __ieee754_log10f() 43 if ((hx&0x7fffffff)==0) in __ieee754_log10f() 45 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log10f() 47 GET_FLOAT_WORD(hx,x); in __ieee754_log10f() 49 if (hx >= 0x7f800000) return x+x; in __ieee754_log10f() 50 if (hx == 0x3f800000) in __ieee754_log10f() 52 k += (hx>>23)-127; in __ieee754_log10f() 53 hx &= 0x007fffff; in __ieee754_log10f() [all …]
|
D | s_frexpf.c | 28 int32_t hx,ix; in frexpf() local 29 GET_FLOAT_WORD(hx,x); in frexpf() 30 ix = 0x7fffffff&hx; in frexpf() 35 GET_FLOAT_WORD(hx,x); in frexpf() 36 ix = hx&0x7fffffff; in frexpf() 40 hx = (hx&0x807fffff)|0x3f000000; in frexpf() 41 SET_FLOAT_WORD(x,hx); in frexpf()
|
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 | e_remainderf.c | 28 int32_t hx,hp; in __ieee754_remainderf() local 32 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf() 34 sx = hx&0x80000000; in __ieee754_remainderf() 36 hx &= 0x7fffffff; in __ieee754_remainderf() 40 if((hx>=0x7f800000)|| /* x not finite */ in __ieee754_remainderf() 46 if ((hx-hp)==0) return zero*x; in __ieee754_remainderf() 61 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf() 62 if ((hx&0x7fffffff)==0) hx = 0; in __ieee754_remainderf() 63 SET_FLOAT_WORD(x,hx^sx); in __ieee754_remainderf()
|
D | e_log2.c | 45 int32_t i,k,hx; in __ieee754_log2() local 48 EXTRACT_WORDS(hx,lx,x); in __ieee754_log2() 51 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log2() 52 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log2() 54 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log2() 56 GET_HIGH_WORD(hx,x); in __ieee754_log2() 58 if (hx >= 0x7ff00000) return x+x; in __ieee754_log2() 59 if (hx == 0x3ff00000 && lx == 0) in __ieee754_log2() 61 k += (hx>>20)-1023; in __ieee754_log2() 62 hx &= 0x000fffff; in __ieee754_log2() [all …]
|
D | e_acoshf.c | 30 int32_t hx; in __ieee754_acoshf() local 31 GET_FLOAT_WORD(hx,x); in __ieee754_acoshf() 32 if(hx<0x3f800000) { /* x < 1 */ in __ieee754_acoshf() 34 } else if(hx >=0x4d800000) { /* x > 2**28 */ in __ieee754_acoshf() 35 if(hx >=0x7f800000) { /* x is inf of NaN */ in __ieee754_acoshf() 39 } else if (hx==0x3f800000) { in __ieee754_acoshf() 41 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ in __ieee754_acoshf()
|
D | e_log10.c | 45 int32_t i,k,hx; in __ieee754_log10() local 48 EXTRACT_WORDS(hx,lx,x); in __ieee754_log10() 51 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log10() 52 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log10() 54 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log10() 56 GET_HIGH_WORD(hx,x); in __ieee754_log10() 58 if (hx >= 0x7ff00000) return x+x; in __ieee754_log10() 59 if (hx == 0x3ff00000 && lx == 0) in __ieee754_log10() 61 k += (hx>>20)-1023; in __ieee754_log10() 62 hx &= 0x000fffff; in __ieee754_log10() [all …]
|
D | s_nexttowardf.c | 28 int32_t hx,ix; in nexttowardf() local 30 GET_FLOAT_WORD(hx,x); in nexttowardf() 31 ix = hx&0x7fffffff; /* |x| */ in nexttowardf() 44 if(hx>=0 ^ x < y) /* x -= ulp */ in nexttowardf() 45 hx -= 1; in nexttowardf() 47 hx += 1; in nexttowardf() 48 ix = hx&0x7f800000; in nexttowardf() 53 SET_FLOAT_WORD(x,hx); in nexttowardf() 57 SET_FLOAT_WORD(x,hx); in nexttowardf()
|
D | e_remainder.c | 37 int32_t hx,hp; in __ieee754_remainder() local 41 EXTRACT_WORDS(hx,lx,x); in __ieee754_remainder() 43 sx = hx&0x80000000; in __ieee754_remainder() 45 hx &= 0x7fffffff; in __ieee754_remainder() 49 if((hx>=0x7ff00000)|| /* x not finite */ in __ieee754_remainder() 56 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder() 71 GET_HIGH_WORD(hx,x); in __ieee754_remainder() 72 if ((hx&0x7fffffff)==0) hx = 0; in __ieee754_remainder() 73 SET_HIGH_WORD(x,hx^sx); in __ieee754_remainder()
|
D | e_log.c | 92 int32_t k,hx,i,j; in __ieee754_log() local 95 EXTRACT_WORDS(hx,lx,x); in __ieee754_log() 98 if (hx < 0x00100000) { /* x < 2**-1022 */ in __ieee754_log() 99 if (((hx&0x7fffffff)|lx)==0) in __ieee754_log() 101 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ in __ieee754_log() 103 GET_HIGH_WORD(hx,x); in __ieee754_log() 105 if (hx >= 0x7ff00000) return x+x; in __ieee754_log() 106 k += (hx>>20)-1023; in __ieee754_log() 107 hx &= 0x000fffff; in __ieee754_log() 108 i = (hx+0x95f64)&0x100000; in __ieee754_log() [all …]
|
D | e_acosh.c | 45 int32_t hx; in __ieee754_acosh() local 47 EXTRACT_WORDS(hx,lx,x); in __ieee754_acosh() 48 if(hx<0x3ff00000) { /* x < 1 */ in __ieee754_acosh() 50 } else if(hx >=0x41b00000) { /* x > 2**28 */ in __ieee754_acosh() 51 if(hx >=0x7ff00000) { /* x is inf of NaN */ in __ieee754_acosh() 55 } else if(((hx-0x3ff00000)|lx)==0) { in __ieee754_acosh() 57 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ in __ieee754_acosh()
|
D | s_cbrtf.c | 35 int32_t hx; in cbrtf() local 39 GET_FLOAT_WORD(hx,x); in cbrtf() 40 sign=hx&0x80000000; /* sign= sign(x) */ in cbrtf() 41 hx ^=sign; in cbrtf() 42 if(hx>=0x7f800000) return(x+x); /* cbrt(NaN,INF) is itself */ in cbrtf() 45 if(hx<0x00800000) { /* zero or subnormal? */ in cbrtf() 46 if(hx==0) in cbrtf() 53 SET_FLOAT_WORD(t,sign|(hx/3+B1)); in cbrtf()
|
D | s_nexttoward.c | 37 int32_t hx,ix; in nexttoward() local 40 EXTRACT_WORDS(hx,lx,x); in nexttoward() 41 ix = hx&0x7fffffff; /* |x| */ in nexttoward() 54 if(hx>0.0 ^ x < y) { /* x -= ulp */ in nexttoward() 55 if(lx==0) hx -= 1; in nexttoward() 59 if(lx==0) hx += 1; in nexttoward() 61 ix = hx&0x7ff00000; in nexttoward() 66 INSERT_WORDS(x,hx,lx); in nexttoward() 70 INSERT_WORDS(x,hx,lx); in nexttoward()
|
D | s_scalbn.c | 39 int32_t k,hx,lx; in scalbn() local 40 EXTRACT_WORDS(hx,lx,x); in scalbn() 41 k = (hx&0x7ff00000)>>20; /* extract exponent */ in scalbn() 43 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn() 45 GET_HIGH_WORD(hx,x); in scalbn() 46 k = ((hx&0x7ff00000)>>20) - 54; in scalbn() 53 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} in scalbn() 59 SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); in scalbn()
|
D | s_tanf.c | 40 int32_t n, hx, ix; in tanf() local 42 GET_FLOAT_WORD(hx,x); in tanf() 43 ix = hx & 0x7fffffff; in tanf() 52 return __kernel_tandf(x + (hx>0 ? -t1pio2 : t1pio2), -1); in tanf() 54 return __kernel_tandf(x + (hx>0 ? -t2pio2 : t2pio2), 1); in tanf() 58 return __kernel_tandf(x + (hx>0 ? -t3pio2 : t3pio2), -1); in tanf() 60 return __kernel_tandf(x + (hx>0 ? -t4pio2 : t4pio2), 1); in tanf()
|
D | s_cexpf.c | 43 uint32_t hx, hy; in cexpf() local 54 GET_FLOAT_WORD(hx, x); in cexpf() 56 if ((hx & 0x7fffffff) == 0) in cexpf() 60 if ((hx & 0x7fffffff) != 0x7f800000) { in cexpf() 63 } else if (hx & 0x80000000) { in cexpf() 72 if (hx >= exp_ovfl && hx <= cexp_ovfl) { in cexpf()
|