/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_floorf.c | 36 int32_t i0,j0; in floorf() local 38 GET_FLOAT_WORD(i0,x); in floorf() 39 j0 = ((i0>>23)&0xff)-0x7f; in floorf() 43 if(i0>=0) {i0=0;} in floorf() 44 else if((i0&0x7fffffff)!=0) in floorf() 45 { i0=0xbf800000;} in floorf() 49 if((i0&i)==0) return x; /* x is integral */ in floorf() 51 if(i0<0) i0 += (0x00800000)>>j0; in floorf() 52 i0 &= (~i); in floorf() 59 SET_FLOAT_WORD(x,i0); in floorf()
|
D | s_ceilf.c | 27 int32_t i0,j0; in ceilf() local 30 GET_FLOAT_WORD(i0,x); in ceilf() 31 j0 = ((i0>>23)&0xff)-0x7f; in ceilf() 35 if(i0<0) {i0=0x80000000;} in ceilf() 36 else if(i0!=0) { i0=0x3f800000;} in ceilf() 40 if((i0&i)==0) return x; /* x is integral */ in ceilf() 42 if(i0>0) i0 += (0x00800000)>>j0; in ceilf() 43 i0 &= (~i); in ceilf() 50 SET_FLOAT_WORD(x,i0); in ceilf()
|
D | s_floor.c | 35 int32_t i0,i1,j0; in floor() local 37 EXTRACT_WORDS(i0,i1,x); in floor() 38 j0 = ((i0>>20)&0x7ff)-0x3ff; in floor() 42 if(i0>=0) {i0=i1=0;} in floor() 43 else if(((i0&0x7fffffff)|i1)!=0) in floor() 44 { i0=0xbff00000;i1=0;} in floor() 48 if(((i0&i)|i1)==0) return x; /* x is integral */ in floor() 50 if(i0<0) i0 += (0x00100000)>>j0; in floor() 51 i0 &= (~i); i1=0; in floor() 61 if(i0<0) { in floor() [all …]
|
D | s_ceil.c | 35 int32_t i0,i1,j0; in ceil() local 37 EXTRACT_WORDS(i0,i1,x); in ceil() 38 j0 = ((i0>>20)&0x7ff)-0x3ff; in ceil() 42 if(i0<0) {i0=0x80000000;i1=0;} in ceil() 43 else if((i0|i1)!=0) { i0=0x3ff00000;i1=0;} in ceil() 47 if(((i0&i)|i1)==0) return x; /* x is integral */ in ceil() 49 if(i0>0) i0 += (0x00100000)>>j0; in ceil() 50 i0 &= (~i); i1=0; in ceil() 60 if(i0>0) { in ceil() 61 if(j0==20) i0+=1; in ceil() [all …]
|
D | s_rint.c | 40 int32_t i0,j0,sx; in rint() local 43 EXTRACT_WORDS(i0,i1,x); in rint() 44 sx = (i0>>31)&1; in rint() 45 j0 = ((i0>>20)&0x7ff)-0x3ff; in rint() 48 if(((i0&0x7fffffff)|i1)==0) return x; in rint() 49 i1 |= (i0&0x0fffff); in rint() 50 i0 &= 0xfffe0000; in rint() 51 i0 |= ((i1|-i1)>>12)&0x80000; in rint() 52 SET_HIGH_WORD(x,i0); in rint() 55 GET_HIGH_WORD(i0,t); in rint() [all …]
|
D | s_truncf.c | 33 int32_t i0,j0; in truncf() local 35 GET_FLOAT_WORD(i0,x); in truncf() 36 j0 = ((i0>>23)&0xff)-0x7f; in truncf() 40 i0 &= 0x80000000; in truncf() 43 if((i0&i)==0) return x; /* x is integral */ in truncf() 45 i0 &= (~i); in truncf() 51 SET_FLOAT_WORD(x,i0); in truncf()
|
D | s_rintf.c | 34 int32_t i0,j0,sx; in rintf() local 36 GET_FLOAT_WORD(i0,x); in rintf() 37 sx = (i0>>31)&1; in rintf() 38 j0 = ((i0>>23)&0xff)-0x7f; in rintf() 41 if((i0&0x7fffffff)==0) return x; in rintf() 44 GET_FLOAT_WORD(i0,t); in rintf() 45 SET_FLOAT_WORD(t,(i0&0x7fffffff)|(sx<<31)); in rintf()
|
D | s_trunc.c | 35 int32_t i0,i1,j0; in trunc() local 37 EXTRACT_WORDS(i0,i1,x); in trunc() 38 j0 = ((i0>>20)&0x7ff)-0x3ff; in trunc() 42 i0 &= 0x80000000U; in trunc() 47 if(((i0&i)|i1)==0) return x; /* x is integral */ in trunc() 49 i0 &= (~i); i1=0; in trunc() 61 INSERT_WORDS(x,i0,i1); in trunc()
|
D | s_modff.c | 27 int32_t i0,j0; in modff() local 29 GET_FLOAT_WORD(i0,x); in modff() 30 j0 = ((i0>>23)&0xff)-0x7f; /* exponent of x */ in modff() 33 SET_FLOAT_WORD(*iptr,i0&0x80000000); /* *iptr = +-0 */ in modff() 37 if((i0&i)==0) { /* x is integral */ in modff() 44 SET_FLOAT_WORD(*iptr,i0&(~i)); in modff()
|
D | s_modf.c | 35 int32_t i0,i1,j0; in modf() local 37 EXTRACT_WORDS(i0,i1,x); in modf() 38 j0 = ((i0>>20)&0x7ff)-0x3ff; /* exponent of x */ in modf() 41 INSERT_WORDS(*iptr,i0&0x80000000,0); /* *iptr = +-0 */ in modf() 45 if(((i0&i)|i1)==0) { /* x is integral */ in modf() 52 INSERT_WORDS(*iptr,i0&(~i),0); in modf() 75 INSERT_WORDS(*iptr,i0,i1&(~i)); in modf()
|
D | s_exp2.c | 345 uint32_t hx, ix, lx, i0; in exp2() local 369 GET_LOW_WORD(i0, t); in exp2() 370 i0 += TBLSIZE / 2; in exp2() 371 k = (i0 >> TBLBITS) << 20; in exp2() 372 i0 = (i0 & (TBLSIZE - 1)) << 1; in exp2() 377 t = tbl[i0]; /* exp2t[i0] */ in exp2() 378 z -= tbl[i0 + 1]; /* eps[i0] */ in exp2()
|
D | s_exp2f.c | 99 uint32_t hx, ix, i0; in exp2f() local 122 GET_FLOAT_WORD(i0, t); in exp2f() 123 i0 += TBLSIZE / 2; in exp2f() 124 k = (i0 >> TBLBITS) << 20; in exp2f() 125 i0 &= TBLSIZE - 1; in exp2f() 131 tv = exp2ft[i0]; in exp2f()
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | s_exp2l.c | 358 uint32_t hx, ix, i0; in exp2l() local 398 i0 = (u.bits.manl & 0xffffffff) + TBLSIZE / 2; in exp2l() 399 k = (int)i0 >> TBLBITS; in exp2l() 400 i0 = i0 & (TBLSIZE - 1); in exp2l() 414 t = tbl[i0]; /* exp2t[i0] */ in exp2l() 415 z -= eps[i0]; /* eps[i0] */ in exp2l()
|