/external/fdlibm/ |
D | e_fmod.c | 35 int n,hx,hy,hz,ix,iy,sx,i; local 38 hx = __HI(x); /* high word of x */ 42 sx = hx&0x80000000; /* sign of x */ 43 hx ^=sx; /* |x| */ 47 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ 50 if(hx<=hy) { 51 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ 57 if(hx<0x00100000) { /* subnormal x */ 58 if(hx==0) { 61 for (ix = -1022,i=(hx<<11); i>0; i<<=1) ix -=1; [all …]
|
D | s_nextafter.c | 30 int hx,hy,ix,iy; local 33 hx = __HI(x); /* high word of x */ 37 ix = hx&0x7fffffff; /* |x| */ 50 if(hx>=0) { /* x > 0 */ 51 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 52 if(lx==0) hx -= 1; 56 if(lx==0) hx += 1; 59 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ 60 if(lx==0) hx -= 1; 64 if(lx==0) hx += 1; [all …]
|
D | s_ilogb.c | 29 int hx,lx,ix; local 31 hx = (__HI(x))&0x7fffffff; /* high word of x */ 32 if(hx<0x00100000) { 34 if((hx|lx)==0) 37 if(hx==0) { 40 for (ix = -1022,hx<<=11; hx>0; hx<<=1) ix -=1; 44 else if (hx<0x7ff00000) return (hx>>20)-1023;
|
D | e_log10.c | 69 int i,k,hx; local 72 hx = __HI(x); /* high word of x */ 76 if (hx < 0x00100000) { /* x < 2**-1022 */ 77 if (((hx&0x7fffffff)|lx)==0) 79 if (hx<0) return (x-x)/zero; /* ieee_log(-#) = NaN */ 81 hx = __HI(x); /* high word of x */ 83 if (hx >= 0x7ff00000) return x+x; 84 k += (hx>>20)-1023; 86 hx = (hx&0x000fffff)|((0x3ff-i)<<20); 88 __HI(x) = hx;
|
D | e_log.c | 93 int k,hx,i,j; local 96 hx = __HI(x); /* high word of x */ 100 if (hx < 0x00100000) { /* x < 2**-1022 */ 101 if (((hx&0x7fffffff)|lx)==0) 103 if (hx<0) return (x-x)/zero; /* ieee_log(-#) = NaN */ 105 hx = __HI(x); /* high word of x */ 107 if (hx >= 0x7ff00000) return x+x; 108 k += (hx>>20)-1023; 109 hx &= 0x000fffff; 110 i = (hx+0x95f64)&0x100000; [all …]
|
D | s_frexp.c | 40 int hx, ix, lx; local 41 hx = __HI(x); 42 ix = 0x7fffffff&hx; 48 hx = __HI(x); 49 ix = hx&0x7fffffff; 53 hx = (hx&0x800fffff)|0x3fe00000; 54 __HI(x) = hx;
|
D | e_exp.c | 110 unsigned hx; local 112 hx = __HI(x); /* high word of x */ 113 xsb = (hx>>31)&1; /* sign bit of x */ 114 hx &= 0x7fffffff; /* high word of |x| */ 117 if(hx >= 0x40862E42) { /* if |x|>=709.78... */ 118 if(hx>=0x7ff00000) { 119 if(((hx&0xfffff)|__LO(x))!=0) 128 if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */ 129 if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ 139 else if(hx < 0x3e300000) { /* when |x|<2**-28 */
|
D | s_cbrt.c | 46 int hx; local 51 hx = __HI(x); /* high word of x */ 52 sign=hx&0x80000000; /* sign= sign(x) */ 53 hx ^=sign; 54 if(hx>=0x7ff00000) return(x+x); /* ieee_cbrt(NaN,INF) is itself */ 55 if((hx|__LO(x))==0) 58 __HI(x) = hx; /* x <- |x| */ 60 if(hx<0x00100000) /* subnormal number */ 65 __HI(t)=hx/3+B1;
|
D | s_expm1.c | 138 unsigned hx; local 140 hx = __HI(x); /* high word of x */ 141 xsb = hx&0x80000000; /* sign bit of x */ 143 hx &= 0x7fffffff; /* high word of |x| */ 146 if(hx >= 0x4043687A) { /* if |x|>=56*ln2 */ 147 if(hx >= 0x40862E42) { /* if |x|>=709.78... */ 148 if(hx>=0x7ff00000) { 149 if(((hx&0xfffff)|__LO(x))!=0) 162 if(hx > 0x3fd62e42) { /* if |x| > 0.5 ln2 */ 163 if(hx < 0x3FF0A2B2) { /* and |x| < 1.5 ln2 */ [all …]
|
D | 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);
|
D | e_acosh.c | 47 int hx; local 48 hx = __HI(x); 49 if(hx<0x3ff00000) { /* x < 1 */ 51 } else if(hx >=0x41b00000) { /* x > 2**28 */ 52 if(hx >=0x7ff00000) { /* x is inf of NaN */ 56 } else if(((hx-0x3ff00000)|__LO(x))==0) { 58 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */
|
D | s_isnan.c | 28 int hx,lx; local 29 hx = (__HI(x)&0x7fffffff); 31 hx |= (unsigned)(lx|(-lx))>>31; 32 hx = 0x7ff00000 - hx; 33 return ((unsigned)(hx))>>31;
|
D | s_erf.c | 197 int hx,ix,i; local 199 hx = __HI(x); 200 ix = hx&0x7fffffff; 202 i = ((unsigned)hx>>31)<<1; 222 if(hx>=0) return erx + P/Q; else return -erx - P/Q; 225 if(hx>=0) return one-tiny; else return tiny-one; 243 if(hx>=0) return one-r/x; else return r/x-one; 253 int hx,ix; local 255 hx = __HI(x); 256 ix = hx&0x7fffffff; [all …]
|
D | s_log1p.c | 107 int k,hx,hu,ax; local 109 hx = __HI(x); /* high word of x */ 110 ax = hx&0x7fffffff; 113 if (hx < 0x3FDA827A) { /* x < 0.41422 */ 125 if(hx>0||hx<=((int)0xbfd2bec3)) { 128 if (hx >= 0x7ff00000) return x+x; 130 if(hx<0x43400000) {
|
D | 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;
|
/external/rust/crates/libm/src/math/ |
D | log.rs | 78 let mut hx: u32 = (ui >> 32) as u32; in log() localVariable 81 if (hx < 0x00100000) || ((hx >> 31) != 0) { in log() 86 if hx >> 31 != 0 { in log() 93 hx = (ui >> 32) as u32; in log() 94 } else if hx >= 0x7ff00000 { in log() 96 } else if hx == 0x3ff00000 && ui << 32 == 0 { in log() 101 hx += 0x3ff00000 - 0x3fe6a09e; in log() 102 k += ((hx >> 20) as i32) - 0x3ff; in log() 103 hx = (hx & 0x000fffff) + 0x3fe6a09e; in log() 104 ui = ((hx as u64) << 32) | (ui & 0xffffffff); in log()
|
D | log2.rs | 50 let mut hx: u32; in log2() localVariable 53 hx = (ui >> 32) as u32; in log2() 55 if hx < 0x00100000 || (hx >> 31) > 0 { in log2() 59 if (hx >> 31) > 0 { in log2() 66 hx = (ui >> 32) as u32; in log2() 67 } else if hx >= 0x7ff00000 { in log2() 69 } else if hx == 0x3ff00000 && ui << 32 == 0 { in log2() 74 hx += 0x3ff00000 - 0x3fe6a09e; in log2() 75 k += (hx >> 20) as i32 - 0x3ff; in log2() 76 hx = (hx & 0x000fffff) + 0x3fe6a09e; in log2() [all …]
|
D | cbrtf.rs | 35 let mut hx: u32 = ui & 0x7fffffff; in cbrtf() localVariable 37 if hx >= 0x7f800000 { in cbrtf() 43 if hx < 0x00800000 { in cbrtf() 45 if hx == 0 { in cbrtf() 49 hx = ui & 0x7fffffff; in cbrtf() 50 hx = hx / 3 + B2; in cbrtf() 52 hx = hx / 3 + B1; in cbrtf() 55 ui |= hx; in cbrtf()
|
D | log10.rs | 53 let mut hx: u32; in log10() localVariable 56 hx = (ui >> 32) as u32; in log10() 58 if hx < 0x00100000 || (hx >> 31) > 0 { in log10() 62 if (hx >> 31) > 0 { in log10() 69 hx = (ui >> 32) as u32; in log10() 70 } else if hx >= 0x7ff00000 { in log10() 72 } else if hx == 0x3ff00000 && ui << 32 == 0 { in log10() 77 hx += 0x3ff00000 - 0x3fe6a09e; in log10() 78 k += (hx >> 20) as i32 - 0x3ff; in log10() 79 hx = (hx & 0x000fffff) + 0x3fe6a09e; in log10() [all …]
|
D | cbrt.rs | 42 let mut hx: u32 = (ui >> 32) as u32 & 0x7fffffff; in cbrt() localVariable 44 if hx >= 0x7ff00000 { in cbrt() 64 if hx < 0x00100000 { in cbrt() 67 hx = (ui >> 32) as u32 & 0x7fffffff; in cbrt() 68 if hx == 0 { in cbrt() 71 hx = hx / 3 + B2; in cbrt() 73 hx = hx / 3 + B1; in cbrt() 76 ui |= (hx as u64) << 32; in cbrt()
|
D | expf.rs | 37 let mut hx = x.to_bits(); in expf() localVariable 38 let sign = (hx >> 31) as i32; /* sign bit of x */ in expf() 40 hx &= 0x7fffffff; /* high word of |x| */ in expf() 43 if hx >= 0x42aeac50 { in expf() 45 if hx > 0x7f800000 { in expf() 49 if (hx >= 0x42b17218) && (!signb) { in expf() 58 if hx >= 0x42cff1b5 { in expf() 69 if hx > 0x3eb17218 { in expf() 71 if hx > 0x3f851592 { in expf() 81 } else if hx > 0x39000000 { in expf()
|
D | expm1f.rs | 39 let mut hx = x.to_bits(); in expm1f() localVariable 40 let sign = (hx >> 31) != 0; in expm1f() 41 hx &= 0x7fffffff; in expm1f() 44 if hx >= 0x4195b844 { in expm1f() 46 if hx > 0x7f800000 { in expm1f() 64 if hx > 0x3eb17218 { in expm1f() 66 if hx < 0x3F851592 { in expm1f() 85 } else if hx < 0x33000000 { in expm1f() 87 if hx < 0x00800000 { in expm1f()
|
D | log1p.rs | 81 let hx: u32; in log1p() localVariable 85 hx = (ui >> 32) as u32; in log1p() 87 if hx < 0x3fda827a || (hx >> 31) > 0 { in log1p() 89 if hx >= 0xbff00000 { in log1p() 96 if hx << 1 < 0x3ca00000 << 1 { in log1p() 99 if (hx & 0x7ff00000) == 0 { in log1p() 104 if hx <= 0xbfd2bec4 { in log1p() 110 } else if hx >= 0x7ff00000 { in log1p()
|
D | exp.rs | 96 let mut hx: u32; in exp() localVariable 98 hx = (x.to_bits() >> 32) as u32; in exp() 99 sign = (hx >> 31) as i32; in exp() 100 hx &= 0x7fffffff; /* high word of |x| */ in exp() 103 if hx >= 0x4086232b { in exp() 123 if hx > 0x3fd62e42 { in exp() 125 if hx >= 0x3ff0a2b2 { in exp() 134 } else if hx > 0x3e300000 { in exp()
|
/external/oboe/samples/RhythmGame/third_party/glm/gtc/ |
D | ulp.inl | 74 glm::detail::int32 hx, hy, ix, iy; local 76 GLM_GET_FLOAT_WORD(hx, x); 78 ix = hx&0x7fffffff; // |x| 90 if(hx>=0) { // x > 0 91 if(hx>hy) { // x > y, x -= ulp 92 hx -= 1; 94 hx += 1; 97 if(hy>=0||hx>hy){ // x < y, x -= ulp 98 hx -= 1; 100 hx += 1; [all …]
|