Home
last modified time | relevance | path

Searched refs:i1 (Results 1 – 3 of 3) sorted by relevance

/lk-master/external/lib/libm/
A Ds_ceil.c35 int32_t i0,i1,j0; in ceil() local
37 EXTRACT_WORDS(i0,i1,x); in ceil()
42 if(i0<0) {i0=0x80000000;i1=0;} in ceil()
43 else if((i0|i1)!=0) { i0=0x3ff00000;i1=0;} in ceil()
50 i0 &= (~i); i1=0; in ceil()
58 if((i1&i)==0) return x; /* x is integral */ in ceil()
63 j = i1 + (1<<(52-j0)); in ceil()
64 if(j<i1) i0+=1; /* got a carry */ in ceil()
65 i1 = j; in ceil()
68 i1 &= (~i); in ceil()
[all …]
A Ds_floor.c35 int32_t i0,i1,j0; in floor() local
37 EXTRACT_WORDS(i0,i1,x); 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()
52 i1=0; in floor()
60 if ((i1&i)==0) return x; /* x is integral */ in floor()
65 j = i1+(1<<(52-j0)); in floor()
67 i1=j; in floor()
70 i1 &= (~i); in floor()
[all …]
A Ds_trunc.c35 int32_t i0,i1,j0; in trunc() local
37 EXTRACT_WORDS(i0,i1,x); in trunc()
43 i1 = 0; in trunc()
47 if(((i0&i)|i1)==0) return x; /* x is integral */ in trunc()
49 i0 &= (~i); i1=0; in trunc()
57 if((i1&i)==0) return x; /* x is integral */ in trunc()
59 i1 &= (~i); in trunc()
61 INSERT_WORDS(x,i0,i1); in trunc()

Completed in 5 milliseconds