Searched refs:maxDelta (Results 1 – 5 of 5) sorted by relevance
/art/test/414-optimizing-arith-sub/src/ |
D | Main.java | 46 float maxDelta = 0.0001F; in expectApproxEquals() local 47 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals() 49 … throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals() 54 double maxDelta = 0.00001D; in expectApproxEquals() local 55 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals() 57 … throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
|
/art/test/411-optimizing-arith-mul/src/ |
D | Main.java | 45 public static void expectApproxEquals(float a, float b, float maxDelta) { in expectApproxEquals() argument 47 ? ((a - b) < maxDelta) in expectApproxEquals() 48 : ((b - a) < maxDelta); in expectApproxEquals() 50 throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta); in expectApproxEquals() 54 public static void expectApproxEquals(double a, double b, double maxDelta) { in expectApproxEquals() argument 56 ? ((a - b) < maxDelta) in expectApproxEquals() 57 : ((b - a) < maxDelta); in expectApproxEquals() 59 throw new Error("Expected: " + a + ", found: " + b + ", with delta: " + maxDelta); in expectApproxEquals()
|
/art/test/417-optimizing-arith-div/src/ |
D | Main.java | 46 float maxDelta = 0.00001F; in expectApproxEquals() local 47 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals() 50 + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals() 55 double maxDelta = 0.00001D; in expectApproxEquals() local 56 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals() 59 + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
|
/art/test/003-omnibus-opcodes/src/ |
D | FloatMath.java | 321 static boolean approxEqual(float a, float b, float maxDelta) { in approxEqual() argument 323 return (a - b) < maxDelta; in approxEqual() 325 return (b - a) < maxDelta; in approxEqual() 327 static boolean approxEqual(double a, double b, double maxDelta) { in approxEqual() argument 329 return (a - b) < maxDelta; in approxEqual() 331 return (b - a) < maxDelta; in approxEqual()
|
/art/test/436-rem-float/src/ |
D | Main.java | 235 float maxDelta = 0.00001F; in expectApproxEquals() local 236 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals() 239 + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals() 244 double maxDelta = 0.00001D; in expectApproxEquals() local 245 boolean aproxEquals = (a > b) ? ((a - b) < maxDelta) : ((b - a) < maxDelta); in expectApproxEquals() 248 + b + ", with delta: " + maxDelta + " " + (a - b)); in expectApproxEquals()
|