/art/test/436-rem-float/src/ |
D | Main.java | 25 expectApproxEquals(1.98F, $opt$Rem(1.98F, 2F)); in remFloat() 26 expectApproxEquals(0F, $opt$Rem(2F, 0.5F)); in remFloat() 27 expectApproxEquals(0.09999F, $opt$Rem(1.0F, 0.1F)); in remFloat() 28 expectApproxEquals(1.9F, $opt$Rem(6.5F, 2.3F)); in remFloat() 29 expectApproxEquals(0.48F, $opt$Rem(1.98F, 1.5F)); in remFloat() 30 expectApproxEquals(0.9999F, $opt$Rem(0.9999F, 1.222F)); in remFloat() 31 expectApproxEquals(0.9999F, $opt$Rem(0.9999F, 1.0001F)); in remFloat() 32 expectApproxEquals(-1.98F, $opt$Rem(-1.98F, 2F)); in remFloat() 33 expectApproxEquals(-0F, $opt$Rem(-2F, 0.5F)); in remFloat() 34 expectApproxEquals(-0.09999F, $opt$Rem(-1.0F, 0.1F)); in remFloat() [all …]
|
/art/test/411-optimizing-arith/src/ |
D | SubTest.java | 45 public static void expectApproxEquals(float a, float b) { in expectApproxEquals() method in SubTest 53 public static void expectApproxEquals(double a, double b) { in expectApproxEquals() method in SubTest 102 expectApproxEquals(2F, $opt$Sub(5F, 3F)); in subFloat() 103 expectApproxEquals(0F, $opt$Sub(0F, 0F)); in subFloat() 104 expectApproxEquals(-3F, $opt$Sub(0F, 3F)); in subFloat() 105 expectApproxEquals(3F, $opt$Sub(3F, 0F)); in subFloat() 106 expectApproxEquals(4F, $opt$Sub(1F, -3F)); in subFloat() 107 expectApproxEquals(-9F, $opt$Sub(-12F, -3F)); in subFloat() 108 expectApproxEquals(34359738362F, $opt$Sub(34359738369F, 7F)); // (2^35 + 1) - 7 in subFloat() 109 expectApproxEquals(-0.1F, $opt$Sub(0.1F, 0.2F)); in subFloat() [all …]
|
D | MulTest.java | 45 public static void expectApproxEquals(float a, float b, float maxDelta) { in expectApproxEquals() method in MulTest 54 public static void expectApproxEquals(double a, double b, double maxDelta) { in expectApproxEquals() method in MulTest 105 expectApproxEquals(15F, $opt$Mul(5F, 3F), 0.0001F); in mulFloat() 106 expectApproxEquals(0F, $opt$Mul(0F, 0F), 0.0001F); in mulFloat() 107 expectApproxEquals(0F, $opt$Mul(0F, 3F), 0.0001F); in mulFloat() 108 expectApproxEquals(0F, $opt$Mul(3F, 0F), 0.0001F); in mulFloat() 109 expectApproxEquals(-3F, $opt$Mul(1F, -3F), 0.0001F); in mulFloat() 110 expectApproxEquals(36F, $opt$Mul(-12F, -3F), 0.0001F); in mulFloat() 111 expectApproxEquals(33F, $opt$Mul(1F, 3F) * 11F, 0.0001F); in mulFloat() 112 expectApproxEquals(0.02F, 0.1F * 0.2F, 0.0001F); in mulFloat() [all …]
|
D | DivTest.java | 45 public static void expectApproxEquals(float a, float b) { in expectApproxEquals() method in DivTest 54 public static void expectApproxEquals(double a, double b) { in expectApproxEquals() method in DivTest 161 expectApproxEquals(1.6666666F, $opt$Div(5F, 3F)); in divFloat() 162 expectApproxEquals(0F, $opt$Div(0F, 3F)); in divFloat() 163 expectApproxEquals(-0.3333333F, $opt$Div(1F, -3F)); in divFloat() 164 expectApproxEquals(4F, $opt$Div(-12F, -3F)); in divFloat() 165 expectApproxEquals(0.5, $opt$Div(0.1F, 0.2F)); in divFloat() 166 expectApproxEquals(-2.5F, $opt$Div(-0.5F, 0.2F)); in divFloat() 190 expectApproxEquals(1.6666666D, $opt$Div(5D, 3D)); in divDouble() 191 expectApproxEquals(0D, $opt$Div(0D, 3D)); in divDouble() [all …]
|