/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/414-optimizing-arith-sub/src/ |
D | Main.java | 45 public static void expectApproxEquals(float a, float b) { in expectApproxEquals() method in Main 53 public static void expectApproxEquals(double a, double b) { in expectApproxEquals() method in Main 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 …]
|
/art/test/411-optimizing-arith-mul/src/ |
D | Main.java | 45 public static void expectApproxEquals(float a, float b, float maxDelta) { in expectApproxEquals() method in Main 54 public static void expectApproxEquals(double a, double b, double maxDelta) { in expectApproxEquals() method in Main 109 expectApproxEquals(15F, $opt$Mul(5F, 3F), 0.0001F); in mulFloat() 110 expectApproxEquals(0F, $opt$Mul(0F, 0F), 0.0001F); in mulFloat() 111 expectApproxEquals(0F, $opt$Mul(0F, 3F), 0.0001F); in mulFloat() 112 expectApproxEquals(0F, $opt$Mul(3F, 0F), 0.0001F); in mulFloat() 113 expectApproxEquals(-3F, $opt$Mul(1F, -3F), 0.0001F); in mulFloat() 114 expectApproxEquals(36F, $opt$Mul(-12F, -3F), 0.0001F); in mulFloat() 115 expectApproxEquals(33F, $opt$Mul(1F, 3F) * 11F, 0.0001F); in mulFloat() 116 expectApproxEquals(0.02F, 0.1F * 0.2F, 0.0001F); in mulFloat() [all …]
|
/art/test/417-optimizing-arith-div/src/ |
D | Main.java | 45 public static void expectApproxEquals(float a, float b) { in expectApproxEquals() method in Main 54 public static void expectApproxEquals(double a, double b) { in expectApproxEquals() method in Main 165 expectApproxEquals(1.6666666F, $opt$Div(5F, 3F)); in divFloat() 166 expectApproxEquals(0F, $opt$Div(0F, 3F)); in divFloat() 167 expectApproxEquals(-0.3333333F, $opt$Div(1F, -3F)); in divFloat() 168 expectApproxEquals(4F, $opt$Div(-12F, -3F)); in divFloat() 169 expectApproxEquals(0.5, $opt$Div(0.1F, 0.2F)); in divFloat() 170 expectApproxEquals(-2.5F, $opt$Div(-0.5F, 0.2F)); in divFloat() 194 expectApproxEquals(1.6666666D, $opt$Div(5D, 3D)); in divDouble() 195 expectApproxEquals(0D, $opt$Div(0D, 3D)); in divDouble() [all …]
|