/aosp_15_r20/art/test/422-type-conversion/src/ |
H A D | Main.java | 53 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 186 assertFloatEquals(1F, $opt$noinline$ByteToFloat((byte)1)); in byteToFloat() 187 assertFloatEquals(0F, $opt$noinline$ByteToFloat((byte)0)); in byteToFloat() 188 assertFloatEquals(-1F, $opt$noinline$ByteToFloat((byte)-1)); in byteToFloat() 189 assertFloatEquals(51F, $opt$noinline$ByteToFloat((byte)51)); in byteToFloat() 190 assertFloatEquals(-51F, $opt$noinline$ByteToFloat((byte)-51)); in byteToFloat() 191 assertFloatEquals(127F, $opt$noinline$ByteToFloat((byte)127)); // 2^7 - 1 in byteToFloat() 192 assertFloatEquals(-127F, $opt$noinline$ByteToFloat((byte)-127)); // -(2^7 - 1) in byteToFloat() 193 assertFloatEquals(-128F, $opt$noinline$ByteToFloat((byte)-128)); // -(2^7) in byteToFloat() 197 assertFloatEquals(1F, $opt$noinline$ShortToFloat((short)1)); in shortToFloat() [all …]
|
/aosp_15_r20/external/cronet/third_party/protobuf/php/tests/ |
H A D | ArrayTest.php | 300 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 303 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 306 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 308 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF); 319 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 322 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 325 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 327 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF); 340 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 343 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); [all …]
|
H A D | MapFieldTest.php | 261 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 264 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 267 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 269 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF); 283 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 286 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 289 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 291 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF);
|
H A D | GeneratedClassTest.php | 366 $this->assertFloatEquals(1.0, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 370 $this->assertFloatEquals(1.1, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 374 $this->assertFloatEquals(2.0, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 376 $this->assertFloatEquals(3.1, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 389 $this->assertFloatEquals(1.0, $m->getOptionalDouble(), MAX_FLOAT_DIFF); 393 $this->assertFloatEquals(1.1, $m->getOptionalDouble(), MAX_FLOAT_DIFF); 397 $this->assertFloatEquals(2.0, $m->getOptionalDouble(), MAX_FLOAT_DIFF); 399 $this->assertFloatEquals(3.1, $m->getOptionalDouble(), MAX_FLOAT_DIFF);
|
H A D | test_base.php | 30 static public function assertFloatEquals($expected, $actual, $delta) function in TestBase
|
/aosp_15_r20/external/protobuf/php/tests/ |
H A D | ArrayTest.php | 300 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 303 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 306 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 308 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF); 319 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 322 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 325 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 327 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF); 340 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 343 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); [all …]
|
H A D | MapFieldTest.php | 261 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 264 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 267 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 269 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF); 283 $this->assertFloatEquals(1.0, $arr[0], MAX_FLOAT_DIFF); 286 $this->assertFloatEquals(1.1, $arr[1], MAX_FLOAT_DIFF); 289 $this->assertFloatEquals(2.0, $arr[2], MAX_FLOAT_DIFF); 291 $this->assertFloatEquals(3.1, $arr[3], MAX_FLOAT_DIFF);
|
H A D | GeneratedClassTest.php | 366 $this->assertFloatEquals(1.0, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 370 $this->assertFloatEquals(1.1, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 374 $this->assertFloatEquals(2.0, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 376 $this->assertFloatEquals(3.1, $m->getOptionalFloat(), MAX_FLOAT_DIFF); 389 $this->assertFloatEquals(1.0, $m->getOptionalDouble(), MAX_FLOAT_DIFF); 393 $this->assertFloatEquals(1.1, $m->getOptionalDouble(), MAX_FLOAT_DIFF); 397 $this->assertFloatEquals(2.0, $m->getOptionalDouble(), MAX_FLOAT_DIFF); 399 $this->assertFloatEquals(3.1, $m->getOptionalDouble(), MAX_FLOAT_DIFF);
|
H A D | test_base.php | 30 static public function assertFloatEquals($expected, $actual, $delta) function in TestBase
|
/aosp_15_r20/art/test/442-checker-constant-folding/src/ |
H A D | Main.java | 38 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 1919 assertFloatEquals(-42F, FloatNegation()); in main() 1927 assertFloatEquals(3F, FloatAddition()); in main() 1932 assertFloatEquals(4F, FloatSubtraction()); in main() 1937 assertFloatEquals(21F, FloatMultiplication()); in main() 1942 assertFloatEquals(3.2F, FloatDivision()); in main() 1947 assertFloatEquals(0.5F, FloatRemainder()); in main() 2039 assertFloatEquals(33, ReturnFloat33()); in main() 2040 assertFloatEquals(34, ReturnFloat34()); in main() 2041 assertFloatEquals(99.25f, ReturnFloat99P25()); in main() [all …]
|
/aosp_15_r20/art/test/859-checker-var-handles-intrinsics/src/ |
H A D | Main.java | 254 $noinline$assertFloatEquals(0.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndAdd_Float() 256 $noinline$assertFloatEquals(100.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndAdd_Float() 260 $noinline$assertFloatEquals(0.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndAdd_Float() 265 $noinline$assertFloatEquals(0.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndSet_Float() 267 $noinline$assertFloatEquals(100.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndSet_Float() 270 $noinline$assertFloatEquals(-100.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndSet_Float() 273 $noinline$assertFloatEquals(0.0f, (float) FLOAT_VALUE.get(m)); in $noinline$testGetAndSet_Float() 665 private static void $noinline$assertFloatEquals(float expected, float result) { in $noinline$assertFloatEquals()
|
/aosp_15_r20/art/test/2265-checker-select-binary-unary/src/ |
H A D | Main.java | 24 assertFloatEquals(11f, $noinline$testIntToFloat(0, 1)); in main() 25 assertFloatEquals(12f, $noinline$testIntToFloat(1, 0)); in main() 140 private static void assertFloatEquals(float expected, float actual) { in assertFloatEquals() method in Main
|
/aosp_15_r20/art/test/477-long-2-float-convers-precision/src/ |
H A D | Main.java | 21 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 35 assertFloatEquals(Float.intBitsToFloat(-555858671), $opt$LongToFloat(-8008112895877447681L)); in longToFloat()
|
/aosp_15_r20/art/test/2024-InvariantNegativeLoop/src/ |
H A D | Main.java | 20 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 44 assertFloatEquals(Float.floatToIntBits(used1 + used2 + used3 + used4), 1157152768); in loop()
|
/aosp_15_r20/art/test/2020-InvokeVirtual-Inlining/src/ |
H A D | Main.java | 32 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 64 assertFloatEquals(workJ1, 14.0f); in main()
|
/aosp_15_r20/art/test/2021-InvokeStatic-Inlining/src/ |
H A D | Main.java | 32 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 83 assertFloatEquals(workJ2, 9.122855f); in main()
|
/aosp_15_r20/art/test/530-checker-lse/src/ |
H A D | Main.java | 4115 static void assertFloatEquals(float result, float expected) { in assertFloatEquals() method in Main 4160 assertFloatEquals(test19(fa1, fa2), 1.8f); in main() 4161 assertFloatEquals(test20().i, 0); in main() 4166 assertFloatEquals(test24(), 8.0f); in main() 4169 assertFloatEquals(test26(5), 0.0f); in main() 4170 assertFloatEquals(test26(3), 1.0f); in main() 4175 assertFloatEquals(test29(true), 5.0f); in main() 4176 assertFloatEquals(test29(false), 2.0f); in main() 4208 assertFloatEquals(testAllocationEliminationWithLoops(), 1.0f); in main() 4209 assertFloatEquals(mF, 0f); in main()
|
/aosp_15_r20/art/test/458-checker-instruct-simplification/src/ |
H A D | Main.java | 39 public static void assertFloatEquals(float expected, float result) { in assertFloatEquals() method in Main 3954 assertFloatEquals(50.0f, $noinline$Div2(100.0f)); in main() 3956 assertFloatEquals(-400.0f, $noinline$DivMP25(100.0f)); in main() 4101 assertFloatEquals(654321.125f, $noinline$floatAddSubSimplifyArg1(floatArg, 654321.125f)); in main() 4102 assertFloatEquals(floatArg, $noinline$floatAddSubSimplifyArg2(floatArg, 654321.125f)); in main() 4103 assertFloatEquals(floatArg, $noinline$floatSubAddSimplifyLeft(floatArg, 654321.125f)); in main() 4104 assertFloatEquals(floatArg, $noinline$floatSubAddSimplifyRight(floatArg, 654321.125f)); in main()
|
/aosp_15_r20/art/test/530-checker-lse-ctor-fences/src/ |
H A D | Main.java | 167 static void assertFloatEquals(float result, float expected) { in assertFloatEquals() method in Main
|