Searched refs:i0 (Results 1 – 5 of 5) sorted by relevance
/lk-master/external/lib/libm/ |
A 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() 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() 64 if(j<i1) i0+=1; /* got a carry */ in ceil() [all …]
|
A 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() 50 if (i0<0) i0 += (0x00100000)>>j0; in floor() 51 i0 &= (~i); in floor() 62 if (i0<0) { in floor() 63 if (j0==20) i0+=1; in floor() [all …]
|
A 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()
|
A 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()
|
A 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()
|
Completed in 6 milliseconds