/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;
|
D | e_atan2.c | 64 int k,m,hx,hy,ix,iy; local 67 hx = __HI(x); ix = hx&0x7fffffff; 74 if((hx-0x3ff00000|lx)==0) return ieee_atan(y); /* x=1.0 */ 75 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ 113 else if(hx<0&&k<-60) z=0.0; /* |y|/x < -2**60 */
|
D | e_jn.c | 60 int i,hx,ix,lx, sgn; local 67 hx = __HI(x); 68 ix = 0x7fffffff&hx; 75 hx ^= 0x80000000; 79 sgn = (n&1)&(hx>>31); /* even n -- 0, odd n -- sign(x) */ 221 int i,hx,ix,lx; local 225 hx = __HI(x); 226 ix = 0x7fffffff&hx; 231 if(hx<0) return zero/zero;
|
D | s_atan.c | 93 int ix,hx,id; local 95 hx = __HI(x); 96 ix = hx&0x7fffffff; 101 if(hx>0) return atanhi[3]+atanlo[3]; 132 return (hx<0)? -z:z;
|
D | 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;
|
D | 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;
|
D | e_rem_pio2.c | 92 int e0,i,j,nx,n,ix,hx; local 94 hx = __HI(x); /* high word of x */ 95 ix = hx&0x7fffffff; 99 if(hx>0) { 152 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;} 173 if(hx<0) {y[0] = -y[0]; y[1] = -y[1]; return -n;}
|
D | k_tan.c | 76 int ix, hx; in __kernel_tan() local 78 hx = __HI(x); /* high word of x */ in __kernel_tan() 79 ix = hx & 0x7fffffff; /* high word of |x| */ in __kernel_tan() 102 if (hx < 0) { in __kernel_tan() 128 return (double) (1 - ((hx >> 30) & 2)) * in __kernel_tan()
|
/external/v8/src/base/ |
D | ieee754.cc | 223 int32_t e0, i, j, nx, n, ix, hx; in __ieee754_rem_pio2() local 227 GET_HIGH_WORD(hx, x); /* high word of x */ in __ieee754_rem_pio2() 228 ix = hx & 0x7fffffff; in __ieee754_rem_pio2() 235 if (hx > 0) { in __ieee754_rem_pio2() 291 if (hx < 0) { in __ieee754_rem_pio2() 319 if (hx < 0) { in __ieee754_rem_pio2() 813 int32_t ix, hx; in __kernel_tan() local 815 GET_HIGH_WORD(hx, x); /* high word of x */ in __kernel_tan() 816 ix = hx & 0x7fffffff; /* high word of |x| */ in __kernel_tan() 841 if (hx < 0) { in __kernel_tan() [all …]
|
/external/vulkan-validation-layers/libs/glm/gtc/ |
D | ulp.inl | 99 glm::detail::int32 hx, hy, ix, iy; local 101 GLM_GET_FLOAT_WORD(hx, x); 103 ix = hx&0x7fffffff; // |x| 115 if(hx>=0) { // x > 0 116 if(hx>hy) { // x > y, x -= ulp 117 hx -= 1; 119 hx += 1; 122 if(hy>=0||hx>hy){ // x < y, x -= ulp 123 hx -= 1; 125 hx += 1; [all …]
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/ |
D | PolygonShape.java | 84 public void setAsBox (float hx, float hy) { in setAsBox() argument 85 jniSetAsBox(addr, hx, hy); in setAsBox() 88 private native void jniSetAsBox (long addr, float hx, float hy); /* in jniSetAsBox() argument 98 public void setAsBox (float hx, float hy, Vector2 center, float angle) { in setAsBox() argument 99 jniSetAsBox(addr, hx, hy, center.x, center.y, angle); in setAsBox() 102 …private native void jniSetAsBox (long addr, float hx, float hy, float centerX, float centerY, floa… in jniSetAsBox() argument
|