Lines Matching refs:opt

77       $opt$Div(value, 0);  in expectDivisionByZero()
82 $opt$DivZero(value); in expectDivisionByZero()
90 $opt$Div(value, 0L); in expectDivisionByZero()
95 $opt$DivZero(value); in expectDivisionByZero()
113 expectEquals(2, $opt$DivConst(6)); in divInt()
114 expectEquals(2, $opt$Div(6, 3)); in divInt()
115 expectEquals(6, $opt$Div(6, 1)); in divInt()
116 expectEquals(-2, $opt$Div(6, -3)); in divInt()
117 expectEquals(1, $opt$Div(4, 3)); in divInt()
118 expectEquals(-1, $opt$Div(4, -3)); in divInt()
119 expectEquals(5, $opt$Div(23, 4)); in divInt()
120 expectEquals(-5, $opt$Div(-23, 4)); in divInt()
122 expectEquals(-Integer.MAX_VALUE, $opt$Div(Integer.MAX_VALUE, -1)); in divInt()
123 expectEquals(Integer.MIN_VALUE, $opt$Div(Integer.MIN_VALUE, -1)); // overflow in divInt()
124 expectEquals(-1073741824, $opt$Div(Integer.MIN_VALUE, 2)); in divInt()
126 expectEquals(0, $opt$Div(0, Integer.MAX_VALUE)); in divInt()
127 expectEquals(0, $opt$Div(0, Integer.MIN_VALUE)); in divInt()
136 expectEquals(2L, $opt$DivConst(6L)); in divLong()
137 expectEquals(2L, $opt$Div(6L, 3L)); in divLong()
138 expectEquals(6L, $opt$Div(6L, 1L)); in divLong()
139 expectEquals(-2L, $opt$Div(6L, -3L)); in divLong()
140 expectEquals(1L, $opt$Div(4L, 3L)); in divLong()
141 expectEquals(-1L, $opt$Div(4L, -3L)); in divLong()
142 expectEquals(5L, $opt$Div(23L, 4L)); in divLong()
143 expectEquals(-5L, $opt$Div(-23L, 4L)); in divLong()
145 expectEquals(-Integer.MAX_VALUE, $opt$Div(Integer.MAX_VALUE, -1L)); in divLong()
146 expectEquals(2147483648L, $opt$Div(Integer.MIN_VALUE, -1L)); in divLong()
147 expectEquals(-1073741824L, $opt$Div(Integer.MIN_VALUE, 2L)); in divLong()
149 expectEquals(-Long.MAX_VALUE, $opt$Div(Long.MAX_VALUE, -1L)); in divLong()
150 expectEquals(Long.MIN_VALUE, $opt$Div(Long.MIN_VALUE, -1L)); // overflow in divLong()
152 expectEquals(11111111111111L, $opt$Div(33333333333333L, 3L)); in divLong()
153 expectEquals(3L, $opt$Div(33333333333333L, 11111111111111L)); in divLong()
155 expectEquals(0L, $opt$Div(0L, Long.MAX_VALUE)); in divLong()
156 expectEquals(0L, $opt$Div(0L, Long.MIN_VALUE)); in divLong()
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()
172 expectEquals(0F, $opt$Div(0F, Float.POSITIVE_INFINITY)); in divFloat()
173 expectEquals(0F, $opt$Div(11F, Float.POSITIVE_INFINITY)); in divFloat()
174 expectEquals(0F, $opt$Div(0F, Float.NEGATIVE_INFINITY)); in divFloat()
175 expectEquals(0F, $opt$Div(11F, Float.NEGATIVE_INFINITY)); in divFloat()
177 expectNaN($opt$Div(0F, 0F)); in divFloat()
178 expectNaN($opt$Div(Float.NaN, 11F)); in divFloat()
179 expectNaN($opt$Div(-11F, Float.NaN)); in divFloat()
180 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat()
181 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat()
182 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat()
183 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat()
184 expectNaN($opt$Div(Float.NaN, Float.NEGATIVE_INFINITY)); in divFloat()
185 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NaN)); in divFloat()
187 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(3F, 0F)); in divFloat()
188 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-3F, 0F)); in divFloat()
189 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(Float.MAX_VALUE, Float.MIN_VALUE)); in divFloat()
190 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-Float.MAX_VALUE, Float.MIN_VALUE)); in divFloat()
194 expectApproxEquals(1.6666666D, $opt$Div(5D, 3D)); in divDouble()
195 expectApproxEquals(0D, $opt$Div(0D, 3D)); in divDouble()
196 expectApproxEquals(-0.3333333D, $opt$Div(1D, -3D)); in divDouble()
197 expectApproxEquals(4D, $opt$Div(-12D, -3D)); in divDouble()
198 expectApproxEquals(0.5, $opt$Div(0.1D, 0.2D)); in divDouble()
199 expectApproxEquals(-2.5D, $opt$Div(-0.5D, 0.2D)); in divDouble()
201 expectEquals(0D, $opt$Div(0D, Float.POSITIVE_INFINITY)); in divDouble()
202 expectEquals(0D, $opt$Div(11D, Float.POSITIVE_INFINITY)); in divDouble()
203 expectEquals(0D, $opt$Div(0D, Float.NEGATIVE_INFINITY)); in divDouble()
204 expectEquals(0D, $opt$Div(11D, Float.NEGATIVE_INFINITY)); in divDouble()
206 expectNaN($opt$Div(0D, 0D)); in divDouble()
207 expectNaN($opt$Div(Float.NaN, 11D)); in divDouble()
208 expectNaN($opt$Div(-11D, Float.NaN)); in divDouble()
209 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divDouble()
210 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divDouble()
211 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divDouble()
212 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in divDouble()
213 expectNaN($opt$Div(Float.NaN, Float.NEGATIVE_INFINITY)); in divDouble()
214 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NaN)); in divDouble()
216 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(3D, 0D)); in divDouble()
217 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-3D, 0D)); in divDouble()
218 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(Float.MAX_VALUE, Float.MIN_VALUE)); in divDouble()
219 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-Float.MAX_VALUE, Float.MIN_VALUE)); in divDouble()
222 static int $opt$Div(int a, int b) { in $opt$Div()
226 static int $opt$DivZero(int a) { in $opt$DivZero()
231 static int $opt$DivConst(int a) { in $opt$DivConst()
235 static long $opt$DivConst(long a) { in $opt$DivConst()
239 static long $opt$Div(long a, long b) { in $opt$Div()
243 static long $opt$DivZero(long a) { in $opt$DivZero()
247 static float $opt$Div(float a, float b) { in $opt$Div()
251 static double $opt$Div(double a, double b) { in $opt$Div()