Lines Matching refs:Div

77       $opt$Div(value, 0);  in expectDivisionByZero()
90 $opt$Div(value, 0L); in expectDivisionByZero()
110 expectEquals(2, $opt$Div(6, 3)); in divInt()
111 expectEquals(6, $opt$Div(6, 1)); in divInt()
112 expectEquals(-2, $opt$Div(6, -3)); in divInt()
113 expectEquals(1, $opt$Div(4, 3)); in divInt()
114 expectEquals(-1, $opt$Div(4, -3)); in divInt()
115 expectEquals(5, $opt$Div(23, 4)); in divInt()
116 expectEquals(-5, $opt$Div(-23, 4)); in divInt()
118 expectEquals(-Integer.MAX_VALUE, $opt$Div(Integer.MAX_VALUE, -1)); in divInt()
119 expectEquals(Integer.MIN_VALUE, $opt$Div(Integer.MIN_VALUE, -1)); // overflow in divInt()
120 expectEquals(-1073741824, $opt$Div(Integer.MIN_VALUE, 2)); in divInt()
122 expectEquals(0, $opt$Div(0, Integer.MAX_VALUE)); in divInt()
123 expectEquals(0, $opt$Div(0, Integer.MIN_VALUE)); in divInt()
133 expectEquals(2L, $opt$Div(6L, 3L)); in divLong()
134 expectEquals(6L, $opt$Div(6L, 1L)); in divLong()
135 expectEquals(-2L, $opt$Div(6L, -3L)); in divLong()
136 expectEquals(1L, $opt$Div(4L, 3L)); in divLong()
137 expectEquals(-1L, $opt$Div(4L, -3L)); in divLong()
138 expectEquals(5L, $opt$Div(23L, 4L)); in divLong()
139 expectEquals(-5L, $opt$Div(-23L, 4L)); in divLong()
141 expectEquals(-Integer.MAX_VALUE, $opt$Div(Integer.MAX_VALUE, -1L)); in divLong()
142 expectEquals(2147483648L, $opt$Div(Integer.MIN_VALUE, -1L)); in divLong()
143 expectEquals(-1073741824L, $opt$Div(Integer.MIN_VALUE, 2L)); in divLong()
145 expectEquals(-Long.MAX_VALUE, $opt$Div(Long.MAX_VALUE, -1L)); in divLong()
146 expectEquals(Long.MIN_VALUE, $opt$Div(Long.MIN_VALUE, -1L)); // overflow in divLong()
148 expectEquals(11111111111111L, $opt$Div(33333333333333L, 3L)); in divLong()
149 expectEquals(3L, $opt$Div(33333333333333L, 11111111111111L)); in divLong()
151 expectEquals(0L, $opt$Div(0L, Long.MAX_VALUE)); in divLong()
152 expectEquals(0L, $opt$Div(0L, Long.MIN_VALUE)); in divLong()
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()
168 expectEquals(0F, $opt$Div(0F, Float.POSITIVE_INFINITY)); in divFloat()
169 expectEquals(0F, $opt$Div(11F, Float.POSITIVE_INFINITY)); in divFloat()
170 expectEquals(0F, $opt$Div(0F, Float.NEGATIVE_INFINITY)); in divFloat()
171 expectEquals(0F, $opt$Div(11F, Float.NEGATIVE_INFINITY)); in divFloat()
173 expectNaN($opt$Div(0F, 0F)); in divFloat()
174 expectNaN($opt$Div(Float.NaN, 11F)); in divFloat()
175 expectNaN($opt$Div(-11F, Float.NaN)); in divFloat()
176 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat()
177 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat()
178 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divFloat()
179 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in divFloat()
180 expectNaN($opt$Div(Float.NaN, Float.NEGATIVE_INFINITY)); in divFloat()
181 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NaN)); in divFloat()
183 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(3F, 0F)); in divFloat()
184 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-3F, 0F)); in divFloat()
185 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(Float.MAX_VALUE, Float.MIN_VALUE)); in divFloat()
186 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-Float.MAX_VALUE, Float.MIN_VALUE)); in divFloat()
190 expectApproxEquals(1.6666666D, $opt$Div(5D, 3D)); in divDouble()
191 expectApproxEquals(0D, $opt$Div(0D, 3D)); in divDouble()
192 expectApproxEquals(-0.3333333D, $opt$Div(1D, -3D)); in divDouble()
193 expectApproxEquals(4D, $opt$Div(-12D, -3D)); in divDouble()
194 expectApproxEquals(0.5, $opt$Div(0.1D, 0.2D)); in divDouble()
195 expectApproxEquals(-2.5D, $opt$Div(-0.5D, 0.2D)); in divDouble()
197 expectEquals(0D, $opt$Div(0D, Float.POSITIVE_INFINITY)); in divDouble()
198 expectEquals(0D, $opt$Div(11D, Float.POSITIVE_INFINITY)); in divDouble()
199 expectEquals(0D, $opt$Div(0D, Float.NEGATIVE_INFINITY)); in divDouble()
200 expectEquals(0D, $opt$Div(11D, Float.NEGATIVE_INFINITY)); in divDouble()
202 expectNaN($opt$Div(0D, 0D)); in divDouble()
203 expectNaN($opt$Div(Float.NaN, 11D)); in divDouble()
204 expectNaN($opt$Div(-11D, Float.NaN)); in divDouble()
205 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divDouble()
206 expectNaN($opt$Div(Float.NEGATIVE_INFINITY, Float.POSITIVE_INFINITY)); in divDouble()
207 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY)); in divDouble()
208 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.POSITIVE_INFINITY)); in divDouble()
209 expectNaN($opt$Div(Float.NaN, Float.NEGATIVE_INFINITY)); in divDouble()
210 expectNaN($opt$Div(Float.POSITIVE_INFINITY, Float.NaN)); in divDouble()
212 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(3D, 0D)); in divDouble()
213 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-3D, 0D)); in divDouble()
214 expectEquals(Float.POSITIVE_INFINITY, $opt$Div(Float.MAX_VALUE, Float.MIN_VALUE)); in divDouble()
215 expectEquals(Float.NEGATIVE_INFINITY, $opt$Div(-Float.MAX_VALUE, Float.MIN_VALUE)); in divDouble()
218 static int $opt$Div(int a, int b) { in $opt$Div()
235 static long $opt$Div(long a, long b) { in $opt$Div()
243 static float $opt$Div(float a, float b) { in $opt$Div()
247 static double $opt$Div(double a, double b) { in $opt$Div()