/openbsd-current/lib/libm/src/ |
H A D | s_ilogbf.c | 22 int32_t hx,ix; local 24 GET_FLOAT_WORD(hx,x); 25 hx &= 0x7fffffff; 26 if(hx<0x00800000) { 27 if(hx==0) 30 for (ix = -126,hx<<=8; hx>0; hx<<=1) ix -=1; 33 else if (hx<0x7f800000) return (hx>>2 [all...] |
H A D | s_ilogb.c | 28 int32_t hx,lx,ix; local 30 GET_HIGH_WORD(hx,x); 31 hx &= 0x7fffffff; 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< [all...] |
H A D | s_frexpf.c | 25 int32_t hx,ix; local 26 GET_FLOAT_WORD(hx,x); 27 ix = 0x7fffffff&hx; 32 GET_FLOAT_WORD(hx,x); 33 ix = hx&0x7fffffff; 37 hx = (hx&0x807fffff)|0x3f000000; 38 SET_FLOAT_WORD(x,hx);
|
H A D | e_fmodf.c | 30 int32_t n,hx,hy,hz,ix,iy,sx,i; local 32 GET_FLOAT_WORD(hx,x); 34 sx = hx&0x80000000; /* sign of x */ 35 hx ^=sx; /* |x| */ 39 if(hy==0||(hx>=0x7f800000)|| /* y=0,or x not finite */ 42 if(hx<hy) return x; /* |x|<|y| return x */ 43 if(hx==hy) 47 if(hx<0x00800000) { /* subnormal x */ 48 for (ix = -126,i=(hx<<8); i>0; i<<=1) ix -=1; 49 } else ix = (hx>>2 [all...] |
H A D | s_nextafterf.c | 22 int32_t hx,hy,ix,iy; local 24 GET_FLOAT_WORD(hx,x); 26 ix = hx&0x7fffffff; /* |x| */ 38 if(hx>=0) { /* x > 0 */ 39 if(hx>hy) { /* x > y, x -= ulp */ 40 hx -= 1; 42 hx += 1; 45 if(hy>=0||hx>hy){ /* x < y, x -= ulp */ 46 hx -= 1; 48 hx [all...] |
H A D | e_log10.c | 63 int32_t i,k,hx; local 66 EXTRACT_WORDS(hx,lx,x); 69 if (hx < 0x00100000) { /* x < 2**-1022 */ 70 if (((hx&0x7fffffff)|lx)==0) 72 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ 74 GET_HIGH_WORD(hx,x); 76 if (hx >= 0x7ff00000) return x+x; 77 k += (hx>>20)-1023; 79 hx = (hx [all...] |
H A D | e_log10f.c | 31 int32_t i,k,hx; local 33 GET_FLOAT_WORD(hx,x); 36 if (hx < 0x00800000) { /* x < 2**-126 */ 37 if ((hx&0x7fffffff)==0) 39 if (hx<0) return (x-x)/zero; /* log(-#) = NaN */ 41 GET_FLOAT_WORD(hx,x); 43 if (hx >= 0x7f800000) return x+x; 44 k += (hx>>23)-127; 46 hx = (hx [all...] |
H A D | s_remquof.c | 29 int32_t n,hx,hy,hz,ix,iy,sx,i; local 32 GET_FLOAT_WORD(hx,x); 34 sxy = (hx ^ hy) & 0x80000000; 35 sx = hx&0x80000000; /* sign of x */ 36 hx ^=sx; /* |x| */ 40 if(hy==0||hx>=0x7f800000||hy>0x7f800000) /* y=0,NaN;or x not finite */ 42 if(hx<hy) { 45 } else if(hx==hy) { 51 if(hx<0x00800000) { /* subnormal x */ 52 for (ix = -126,i=(hx<< [all...] |
H A D | e_acoshf.c | 27 int32_t hx; local 28 GET_FLOAT_WORD(hx,x); 29 if(hx<0x3f800000) { /* x < 1 */ 31 } else if(hx >=0x4d800000) { /* x > 2**28 */ 32 if(hx >=0x7f800000) { /* x is inf of NaN */ 36 } else if (hx==0x3f800000) { 38 } else if (hx > 0x40000000) { /* 2**28 > x > 2 */
|
H A D | s_remquo.c | 31 int32_t n,hx,hy,hz,ix,iy,sx,i; local 34 EXTRACT_WORDS(hx,lx,x); 36 sxy = (hx ^ hy) & 0x80000000; 37 sx = hx&0x80000000; /* sign of x */ 38 hx ^=sx; /* |x| */ 42 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ 45 if(hx<=hy) { 46 if((hx<hy)||(lx<ly)) { 57 if(hx<0x00100000) { /* subnormal x */ 58 if(hx [all...] |
H A D | s_nextafter.c | 28 int32_t hx,hy,ix,iy; local 31 EXTRACT_WORDS(hx,lx,x); 33 ix = hx&0x7fffffff; /* |x| */ 45 if(hx>=0) { /* x > 0 */ 46 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 47 if(lx==0) hx -= 1; 51 if(lx==0) hx += 1; 54 if(hy>=0||hx>hy||((hx [all...] |
H A D | e_fmod.c | 29 int32_t n,hx,hy,hz,ix,iy,sx,i; local 32 EXTRACT_WORDS(hx,lx,x); 34 sx = hx&0x80000000; /* sign of x */ 35 hx ^=sx; /* |x| */ 39 if((hy|ly)==0||(hx>=0x7ff00000)|| /* y=0,or x not finite */ 42 if(hx<=hy) { 43 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ 49 if(hx<0x00100000) { /* subnormal x */ 50 if(hx==0) { 53 for (ix = -1022,i=(hx<<1 [all...] |
H A D | s_cbrtf.c | 37 int32_t hx; local 41 GET_FLOAT_WORD(hx,x); 42 sign=hx&0x80000000; /* sign= sign(x) */ 43 hx ^=sign; 44 if(hx>=0x7f800000) return(x+x); /* cbrt(NaN,INF) is itself */ 45 if(hx==0) 48 SET_FLOAT_WORD(x,hx); /* x <- |x| */ 50 if(hx<0x00800000) /* subnormal number */ 55 SET_FLOAT_WORD(t,hx/3+B1);
|
/openbsd-current/gnu/gcc/libstdc++-v3/libmath/ |
H A D | signbit.c | 37 Int32_t hx; local 39 GET_HIGH_WORD (hx, x); 40 return hx & 0x80000000;
|
H A D | signbitf.c | 37 Int32_t hx; local 39 GET_FLOAT_WORD (hx, x); 40 return hx & 0x80000000;
|
/openbsd-current/gnu/lib/libstdc++/libstdc++/libmath/ |
H A D | signbit.c | 37 Int32_t hx; local 39 GET_HIGH_WORD (hx, x); 40 return hx & 0x80000000;
|
H A D | signbitf.c | 37 Int32_t hx; local 39 GET_FLOAT_WORD (hx, x); 40 return hx & 0x80000000;
|
/openbsd-current/lib/libm/src/ld128/ |
H A D | s_ilogbl.c | 31 int64_t hx,lx; local 34 GET_LDOUBLE_WORDS64(hx,lx,x); 35 hx &= 0x7fffffffffffffffLL; 36 if(hx<0x0001000000000000LL) { 37 if((hx|lx)==0) 40 if(hx==0) { 43 for (ix = -16382, hx<<=15; hx>0; hx<<=1) ix -=1; 47 else if (hx< [all...] |
H A D | e_fmodl.c | 28 int64_t n,hx,hy,hz,ix,iy,sx,i; local 31 GET_LDOUBLE_WORDS64(hx,lx,x); 33 sx = hx&0x8000000000000000ULL; /* sign of x */ 34 hx ^=sx; /* |x| */ 38 if((hy|ly)==0||(hx>=0x7fff000000000000LL)|| /* y=0,or x not finite */ 41 if(hx<=hy) { 42 if((hx<hy)||(lx<ly)) return x; /* |x|<|y| return x */ 48 if(hx<0x0001000000000000LL) { /* subnormal x */ 49 if(hx==0) { 52 for (ix = -16382, i=hx<<1 [all...] |
H A D | s_nextafterl.c | 27 int64_t hx,hy,ix,iy; local 30 GET_LDOUBLE_WORDS64(hx,lx,x); 32 ix = hx&0x7fffffffffffffffLL; /* |x| */ 46 if(hx>=0) { /* x > 0 */ 47 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 48 if(lx==0) hx--; 52 if(lx==0) hx++; 55 if(hy>=0||hx>hy||((hx [all...] |
H A D | s_cbrtl.c | 34 uint64_t hx, lx; local 38 GET_LDOUBLE_MSW64(hx,x); 39 k = (hx>>48)&0x7fff; 50 GET_LDOUBLE_WORDS64(hx,lx,x); 51 if (((hx&0x7fffffffffffffffLL)|lx) == 0) { 56 GET_LDOUBLE_MSW64(hx,x); 57 k = (hx>>48)&0x7fff; 61 GET_LDOUBLE_MSW64(hx,x); 62 hx = (hx [all...] |
H A D | s_remquol.c | 31 #define SET_NBIT(hx) ((hx) | (1ULL << LDBL_MANH_SIZE)) 35 #define SET_NBIT(hx) (hx) 59 int64_t hx,hz,hy,_hx; local 64 GET_LDOUBLE_WORDS64(hx,lx,x); 66 sx = (hx>>48)&0x8000; 68 hx &= 0x7fffffffffffffffLL; /* |x| */ 70 SET_LDOUBLE_WORDS64(x,hx,lx); 75 ((hx>>4 [all...] |
/openbsd-current/lib/libm/src/ld80/ |
H A D | s_ilogbl.c | 31 int32_t esx,hx,lx,ix; local 33 GET_LDOUBLE_WORDS(esx,hx,lx,x); 36 if((hx|lx)==0) 39 if(hx==0) { 42 for (ix = -16382; hx>0; hx<<=1) ix -=1; 47 else if ((hx&0x7fffffff|lx)!=0) return FP_ILOGBNAN;
|
H A D | s_nextafterl.c | 27 int32_t hx,hy,ix,iy; local 31 GET_LDOUBLE_WORDS(esx,hx,lx,x); 36 if (((ix==0x7fff)&&(((hx&0x7fffffff)|lx)!=0)) || /* x is nan */ 40 if((ix|hx|lx)==0) { /* x == 0 */ 48 if(esx>esy||((esx==esy) && (hx>hy||((hx==hy)&&(lx>ly))))) { 51 if ((hx&0x7fffffff)==0) esx -= 1; 52 hx = (hx - 1) | (hx [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 980506-2.c | 25 int32_t hx,hy,ix,iy; local 30 hx = gf_u.word; 37 ix = hx&0x7fffffff; 53 if (hx >= 0) 55 if (hx > hy) 56 hx -= 1; 58 hx += 1; 62 if (hy >= 0 || hx > hy) 63 hx -= 1; 65 hx [all...] |