/prebuilts/go/darwin-x86/test/fixedbugs/ |
issue7740.go | 17 const ulp = (1.0 + (2.0 / 3.0)) - (5.0 / 3.0) const 31 p := 1 - math.Log(math.Abs(ulp))/math.Log(2)
|
/prebuilts/go/linux-x86/test/fixedbugs/ |
issue7740.go | 17 const ulp = (1.0 + (2.0 / 3.0)) - (5.0 / 3.0) const 31 p := 1 - math.Log(math.Abs(ulp))/math.Log(2)
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
ulp.c | 35 ulp function
|
gdtoaimp.h | 568 #define ulp __ulp_D2A macro 616 extern double ulp ANSI((U*));
|
/device/linaro/bootloader/edk2/StdLib/LibC/gdtoa/ |
ulp.c | 1 /* $NetBSD: ulp.c,v 1.2 2006/01/25 15:27:42 kleink Exp $ */
38 ulp
function
|
gdtoaimp.h | 541 #define ulp __ulp_D2A
macro 589 extern double ulp (double);
|
/libcore/ojluni/src/main/java/sun/misc/ |
FpUtils.java | 829 * Returns the size of an ulp of the argument. An ulp of a 833 * <code>ulp(-<i>x</i>) == ulp(<i>x</i>)</code>. 853 public static double ulp(double d) { method in class:FpUtils 882 public static float ulp(float f) { method in class:FpUtils [all...] |
/external/deqp/framework/common/ |
tcuFloatFormat.cpp | 79 * On the definition of ULP 81 * The GLSL spec does not define ULP. However, it refers to IEEE 754, which 84 * ULP(x) is the distance between the closest floating point numbers 87 * Note that this means that when x = 2^n, ULP(x) = 2^(n-p-1), i.e. it is the 90 * Furthermore, it is assumed that ULP is calculated relative to the exact 94 * For details, see "On the definition of ulp(x)" by Jean-Michel Muller 98 double FloatFormat::ulp (double x, double count) const function in class:tcu::FloatFormat 109 // Harrison's ULP: choose distance to closest (i.e. next lower) at binade 116 // ULP cannot be lower than the smallest quantum. 335 oss << "ulp(" << arg << ")" [all...] |
/cts/tests/tests/location/src/android/location/cts/asn1/supl2/ulp/ |
ULP_PDU.java | 17 package android.location.cts.asn1.supl2.ulp;
|
UlpMessage.java | 17 package android.location.cts.asn1.supl2.ulp;
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
FloatyUnitTest.java | 95 // Test Target that accepts precise 1ulp error for floating values. 105 shouldAccept(subnormalFloaty, (double) subnormalFloat + Math.ulp(subnormalFloat)); 106 shouldAccept(subnormalFloaty, (double) subnormalFloat - Math.ulp(subnormalFloat)); 107 shouldNotAccept(subnormalFloaty, (double) subnormalFloat + 2 * Math.ulp(subnormalFloat)); 108 shouldNotAccept(subnormalFloaty, (double) subnormalFloat - 2 * Math.ulp(subnormalFloat)); 113 shouldAccept(normalFloaty, (double) normalFloat1 + Math.ulp(normalFloat1)); 114 shouldAccept(normalFloaty, (double) normalFloat1 - Math.ulp(normalFloat1)); 115 shouldNotAccept(normalFloaty, (double) normalFloat1 + 2 * Math.ulp(normalFloat1)); 116 shouldNotAccept(normalFloaty, (double) normalFloat1 - 2 * Math.ulp(normalFloat1)); 120 // Test Target that accepts precise 8192ulp error for floating values 389 double ulp = Float16Utils.float16Ulp(value); local 534 double ulp = Float16Utils.float16Ulp(value); local [all...] |
RSBaseCompute.java | 52 float ulp = Math.ulp(ref[refIdx]) * ulpCount; local 56 ulp);
|
float16_gen.c | 27 // acceptable error is 3 x ULP for division and 1 x ULP for other 121 // Compute ULP for 'value' and store value +/- tolerance * ULP in bounds sarray 125 fprintf(stderr, "Allowed ULP error should either be 1 or 3, and not %d\n", 131 half ulp; local 140 // Compute ULP 142 // 1 ulp for a subnormal number is the smallest possible subnormal 144 ulp = *(half *) &ulpInShort; 147 // 1 ulp for a non-subnormal number is (b - a) wher [all...] |
Target.java | 101 * Sets whether we are testing a native_* function and how many ulp we allow 338 //Log.w("Floaty(double[], ulp)", "input: " + Arrays.toString(values) + ", ulp " + Integer.toString(mUlpFactor)); 364 // Expand the range by one ulp factor to cover for the different rounding modes. 366 //Log.w("Floaty(double[], ulp)", "output: " + toString()); 413 /** Modify mMinValue and mMaxValue to allow one extra ulp factor of error on each side. */ 422 /** Expand the mMinValue by the number of ulp specified. */ 434 double ulp = NegativeUlp(); local 435 double delta = ulp * ulpFactor; 460 //Log.w("ExpandMin", "ulp " + java.lang.Double.toString(ulp) + ", delta " + java.lang.Double.toString(delta) + " for " + jav (…) 475 double ulp = Ulp(); local [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
StrictMath.java | 432 * away any fractional portion of a since ulp(twoToThe52) == 1140 public static double ulp(double d) { method in class:StrictMath 1167 public static float ulp(float f) { method in class:StrictMath [all...] |
Math.java | 59 * given floating-point format, an {@linkplain #ulp(double) ulp} of a 71 * allowed for certain methods. Informally, with a 1 ulp error bound, 79 * methods with more than 0.5 ulp errors are required to be 84 * ulp accuracy will automatically meet the monotonicity requirements. 137 * <p>The computed result must be within 1 ulp of the exact result. 151 * <p>The computed result must be within 1 ulp of the exact result. 167 * <p>The computed result must be within 1 ulp of the exact result. 184 * <p>The computed result must be within 1 ulp of the exact result. 199 * <p>The computed result must be within 1 ulp of the exact result 1450 public static double ulp(double d) { method in class:Math 1501 public static float ulp(float f) { method in class:Math [all...] |
/external/python/cpython3/Lib/test/ |
test_math.py | 52 def ulp(x): function 54 float x, such that the first float bigger than x is x+ulp(x). 56 the result y should be such that abs(y-x) <= n * ulp(x). 198 ulp(expected) or absolutely (if given and greater). 252 ulp(expected) or absolutely, whichever is greater. 452 self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0, abs_tol=ulp(1)) 454 self.ftest('cos(pi/2)', math.cos(math.pi/2), 0, abs_tol=ulp(1)) [all...] |
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
readertest.cpp | 406 double ulp = bias1 >= bias2 ? bias1 - bias2 : bias2 - bias1;
local 407 ulpMax = std::max(ulpMax, ulp);
408 ulpSum += ulp;
410 printf("ULP Average = %g, Max = %g \n", ulpSum / count, ulpMax);
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
dtoa.c | 1003 ulp(U *x)
function 1067 2**e gives ulp(d/2**scale).
[all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
dtoa.c | 986 ulp(U *x)
function 1050 2**e gives ulp(d/2**scale).
[all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/ |
FastMath.java | 691 * rounded for 99.9% of input values, with less than 1 ULP error otherwise. 788 is less than 0.5 ULP */ 3388 public static double ulp(double x) { method in class:FastMath 3400 public static float ulp(float x) { method in class:FastMath [all...] |
/external/python/cpython2/Python/ |
dtoa.c | 1003 ulp(U *x) function 1067 2**e gives ulp(d/2**scale). [all...] |
/external/python/cpython3/Python/ |
dtoa.c | 929 ulp(U *x) function 993 2**e gives ulp(d/2**scale). 1224 /* sulp(x) is a version of ulp(x) that takes bc.scale into account. 1228 sulp(x) is equivalent to 2^bc.scale * ulp(x / 2^bc.scale). */ 1243 return ulp(x); [all...] |
/libcore/luni/src/main/java/java/math/ |
BigDecimal.java | 2651 public BigDecimal ulp() { method in class:BigDecimal [all...] |
/prebuilts/sdk/10/ |
android.jar | |