/bionic/libm/src/ |
s_nextafterf.c | 44 if(hx>hy) { /* x > y, x -= ulp */ 46 } else { /* x < y, x += ulp */ 50 if(hy>=0||hx>hy){ /* x < y, x -= ulp */ 52 } else { /* x > y, x += ulp */
|
e_sqrt.c | 72 * result is exact, bigger than 1/2ulp, or less than 1/2ulp 73 * (it will never equal to 1/2ulp). 248 sqrt(x) to within 1 ulp (Unit in the Last Place): 252 y := y-(y-x/y)/2 ... within 1 ulp 256 Another way to improve y to within 1 ulp is: 263 y := y + 2* ---------- ...within 1 ulp 281 use the expression y+-ulp for the next representable floating 282 numbers (up and down) of y. Note that y+-ulp = either fixed 295 z := z - ulp; ... special roundin [all...] |
s_nextafter.c | 52 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 55 } else { /* x < y, x += ulp */ 60 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ 63 } else { /* x > y, x += ulp */
|
s_nexttowardf.c | 45 if(hx>=0 ^ x < y) /* x -= ulp */ 47 else /* x += ulp */
|
s_nextafterl.c | 57 if(x>0.0 ^ x<y) { /* x -= ulp */ 64 } else { /* x += ulp */
|
s_nexttoward.c | 55 if(hx>0.0 ^ x < y) { /* x -= ulp */ 58 } else { /* x += ulp */
|
e_hypot.c | 22 * has error less than sqrt(2)/2 ulp, than 23 * sqrt(z) has error less than 1 ulp (exercise). 26 * follows to get the error below 1 ulp:
|
s_log1p.c | 47 * In order to guarantee error in log below 1ulp, we compute log 64 * 1 ulp (unit in the last place). 73 * algorithm can be used to compute log1p(x) to within a few ULP:
|
/external/fdlibm/ |
e_sqrt.c | 67 * result is exact, bigger than 1/2ulp, or less than 1/2ulp 68 * (it will never equal to 1/2ulp). 252 sqrt(x) to within 1 ulp (Unit in the Last Place): 256 y := y-(y-x/y)/2 ... within 1 ulp 260 Another way to improve y to within 1 ulp is: 267 y := y + 2* ---------- ...within 1 ulp 285 use the expression y+-ulp for the next representable floating 286 numbers (up and down) of y. Note that y+-ulp = either fixed 299 z := z - ulp; ... special roundin [all...] |
changes | 64 2. k_tan.c error was > 1 ulp target for FDLIBM 65 5.2: Worst error at least 1.45 ulp at 67 5.3: Worst error 0.96 ulp
|
s_nextafter.c | 51 if(hx>hy||((hx==hy)&&(lx>ly))) { /* x > y, x -= ulp */ 54 } else { /* x < y, x += ulp */ 59 if(hy>=0||hx>hy||((hx==hy)&&(lx>ly))){/* x < y, x -= ulp */ 62 } else { /* x > y, x += ulp */
|
e_hypot.c | 18 * has error less than ieee_sqrt(2)/2 ulp, than 19 * sqrt(z) has error less than 1 ulp (exercise). 22 * follows to get the error below 1 ulp:
|
s_log1p.c | 44 * In order to guarantee error in log below 1ulp, we compute log 61 * 1 ulp (unit in the last place). 70 * algorithm can be used to compute ieee_log1p(x) to within a few ULP:
|
/external/qemu/distrib/sdl-1.2.12/src/video/ |
e_sqrt.h | 71 * result is exact, bigger than 1/2ulp, or less than 1/2ulp 72 * (it will never equal to 1/2ulp). 295 sqrt(x) to within 1 ulp (Unit in the Last Place): 299 y := y-(y-x/y)/2 ... within 1 ulp 303 Another way to improve y to within 1 ulp is: 310 y := y + 2* ---------- ...within 1 ulp 328 use the expression y+-ulp for the next representable floating 329 numbers (up and down) of y. Note that y+-ulp = either fixed 342 z := z - ulp; ... special roundin [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
MathTest.java | 38 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 46 Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 759 * @tests java.lang.Math#ulp(double) 765 assertTrue("Should return NaN", Double.isNaN(Math.ulp(Double.NaN))); 767 .ulp(Double.POSITIVE_INFINITY), 0D); 769 .ulp(Double.NEGATIVE_INFINITY), 0D); 771 .ulp(0.0), 0D); 773 .ulp(+0.0), 0D); 775 .ulp(-0.0), 0D); 777 .ulp(Double.MAX_VALUE), 0D) [all...] |
StrictMathTest.java | 782 * @tests java.lang.StrictMath#ulp(double) 789 .isNaN(StrictMath.ulp(Double.NaN))); 791 StrictMath.ulp(Double.POSITIVE_INFINITY), 0D); 793 StrictMath.ulp(Double.NEGATIVE_INFINITY), 0D); 795 .ulp(0.0), 0D); 797 .ulp(+0.0), 0D); 799 .ulp(-0.0), 0D); 801 StrictMath.ulp(Double.MAX_VALUE), 0D); 803 StrictMath.ulp(-Double.MAX_VALUE), 0D); [all...] |
/dalvik/libcore/luni/src/main/java/java/lang/ |
Math.java | 119 * 1 ulp (unit in the last place) of the real result. 137 * ulp (unit in the last place) of the real result. 155 * within 1 ulp (unit in the last place) of the real result. 253 * The returned result is within 1 ulp (unit in the last place) of the real 289 * of the argument. The returned result is within 1 ulp (unit in the last 309 * cancellation of significant digits). The returned result is within 1 ulp 313 * result is within 0.5 ulp of -1, -1.0 is returned. 354 * medium underflow or overflow. The returned result is within 1 ulp (unit 406 * argument. The returned result is within 1 ulp (unit in the last place) of 427 * argument. The returned result is within 1 ulp (unit in the last place) o 1007 public static double ulp(double d) { method in class:Math 1037 public static float ulp(float f) { method in class:Math [all...] |
StrictMath.java | 999 public static double ulp(double d) { method in class:StrictMath 1029 public static float ulp(float f) { method in class:StrictMath [all...] |
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
MathTest.java | 38 junit.framework.Assert.assertEquals(message, expected, actual, Math.ulp(expected)); 45 junit.framework.Assert.assertEquals(message, expected, actual, Math.ulp(expected)); [all...] |
StrictMathTest.java | [all...] |
/external/ipsec-tools/src/racoon/ |
policy.h | 112 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, _priority, _created, idx) \ 118 (idx)->ul_proto = (ulp); \ 125 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, _created, idx) \ 131 (idx)->ul_proto = (ulp); \
|
/bionic/libm/bsdsrc/ |
b_tgamma.c | 76 * x > 0: error provably < 0.9ulp. 77 * Maximum observed in 1,000,000 trials was .87ulp. 79 * Maximum observed error < 4ulp in 1,000,000 trials. 154 * Accurate to max(ulp(1/128) absolute, 2^-66 relative) error. 182 * Good to < 1 ulp. (provably .90 ulp; .87 ulp on 1,000,000 runs.) 217 * Good on (0, 1+x0+LEFT]. Accurate to 1ulp.
|
/bionic/libm/man/ |
ieee.3 | 104 .Em ulp , 106 .Em ulp 110 .Em ulp 166 .Em ulp ) , 201 .Em ulp ) , 231 .Em ulp ) , 261 .Em ulp ) ,
|
/external/ipsec-tools/src/libipsec/ |
pfkey_dump.c | 695 str_prefport(family, pref, port, ulp) 696 u_int family, pref, port, ulp; 719 if (ulp == IPPROTO_ICMPV6) 734 str_upperspec(ulp, p1, p2) 735 u_int ulp, p1, p2; 737 if (ulp == IPSEC_ULPROTO_ANY) 739 else if (ulp == IPPROTO_ICMPV6) { 746 switch (ulp) { 751 ent = getprotobynumber((int)ulp); 755 printf("%u", ulp); [all...] |
/hardware/msm7k/librpc/rpc/ |
xdr.h | 90 extern bool_t xdr_long (XDR *xdr, long *ulp); 91 extern bool_t xdr_u_long (XDR *xdr, u_long *ulp);
|