Lines Matching refs:results

138         float[] results = new float[10];  in floatOperTest()  local
142 results[0] = x + y; in floatOperTest()
143 results[1] = x - y; in floatOperTest()
144 results[2] = x * y; in floatOperTest()
145 results[3] = x / y; in floatOperTest()
146 results[4] = x % -y; in floatOperTest()
151 results[5] = tmp; in floatOperTest()
154 results[6] = tmp; in floatOperTest()
157 results[7] = tmp; in floatOperTest()
160 results[8] = tmp; in floatOperTest()
163 results[9] = tmp; in floatOperTest()
165 return results; in floatOperTest()
167 static void floatOperCheck(float[] results) { in floatOperCheck() argument
168 Main.assertTrue(results[0] > 69996.99f && results[0] < 69997.01f); in floatOperCheck()
169 Main.assertTrue(results[1] > 70002.99f && results[1] < 70003.01f); in floatOperCheck()
170 Main.assertTrue(results[2] > -210000.01f && results[2] < -209999.99f); in floatOperCheck()
171 Main.assertTrue(results[3] > -23333.34f && results[3] < -23333.32f); in floatOperCheck()
172 Main.assertTrue(results[4] > 0.999f && results[4] < 1.001f); in floatOperCheck()
173 Main.assertTrue(results[5] > 69996.99f && results[5] < 69997.01f); in floatOperCheck()
174 Main.assertTrue(results[6] > 70002.99f && results[6] < 70003.01f); in floatOperCheck()
175 Main.assertTrue(results[7] > -210000.01f && results[7] < -209999.99f); in floatOperCheck()
176 Main.assertTrue(results[8] > -23333.34f && results[8] < -23333.32f); in floatOperCheck()
177 Main.assertTrue(results[9] > 0.999f && results[9] < 1.001f); in floatOperCheck()
187 double[] results = new double[10]; in doubleOperTest() local
191 results[0] = x + y; in doubleOperTest()
192 results[1] = x - y; in doubleOperTest()
193 results[2] = x * y; in doubleOperTest()
194 results[3] = x / y; in doubleOperTest()
195 results[4] = x % -y; in doubleOperTest()
200 results[5] = tmp; in doubleOperTest()
203 results[6] = tmp; in doubleOperTest()
206 results[7] = tmp; in doubleOperTest()
209 results[8] = tmp; in doubleOperTest()
212 results[9] = tmp; in doubleOperTest()
214 return results; in doubleOperTest()
216 static void doubleOperCheck(double[] results) { in doubleOperCheck() argument
217 Main.assertTrue(results[0] > 69996.99 && results[0] < 69997.01); in doubleOperCheck()
218 Main.assertTrue(results[1] > 70002.99 && results[1] < 70003.01); in doubleOperCheck()
219 Main.assertTrue(results[2] > -210000.01 && results[2] < -209999.99); in doubleOperCheck()
220 Main.assertTrue(results[3] > -23333.34 && results[3] < -23333.32); in doubleOperCheck()
221 Main.assertTrue(results[4] > 0.999 && results[4] < 1.001); in doubleOperCheck()
222 Main.assertTrue(results[5] > 69996.99 && results[5] < 69997.01); in doubleOperCheck()
223 Main.assertTrue(results[6] > 70002.99 && results[6] < 70003.01); in doubleOperCheck()
224 Main.assertTrue(results[7] > -210000.01 && results[7] < -209999.99); in doubleOperCheck()
225 Main.assertTrue(results[8] > -23333.34 && results[8] < -23333.32); in doubleOperCheck()
226 Main.assertTrue(results[9] > 0.999 && results[9] < 1.001); in doubleOperCheck()
238 int[] results = new int[6]; in convI() local
239 results[0] = (int) l; in convI()
240 results[1] = (int) f; in convI()
241 results[2] = (int) d; in convI()
242 results[3] = (int) (1.0f / zero); // +inf in convI()
243 results[4] = (int) (-1.0f / zero); // -inf in convI()
244 results[5] = (int) ((1.0f / zero) / (1.0f / zero)); // NaN in convI()
245 return results; in convI()
247 static void checkConvI(int[] results) { in checkConvI() argument
249 Main.assertTrue(results[0] == 0x44332211); in checkConvI()
250 Main.assertTrue(results[1] == 123); in checkConvI()
251 Main.assertTrue(results[2] == -3); in checkConvI()
252 Main.assertTrue(results[3] == 0x7fffffff); in checkConvI()
253 Main.assertTrue(results[4] == 0x80000000); in checkConvI()
254 Main.assertTrue(results[5] == 0); in checkConvI()
258 long[] results = new long[6]; in convL() local
259 results[0] = (long) i; in convL()
260 results[1] = (long) f; in convL()
261 results[2] = (long) d; in convL()
262 results[3] = (long) (1.0 / zero); // +inf in convL()
263 results[4] = (long) (-1.0 / zero); // -inf in convL()
264 results[5] = (long) ((1.0 / zero) / (1.0 / zero)); // NaN in convL()
265 return results; in convL()
267 static void checkConvL(long[] results) { in checkConvL() argument
269 Main.assertTrue(results[0] == 0xFFFFFFFF88776655L); in checkConvL()
270 Main.assertTrue(results[1] == 123); in checkConvL()
271 Main.assertTrue(results[2] == -3); in checkConvL()
272 Main.assertTrue(results[3] == 0x7fffffffffffffffL); in checkConvL()
273 Main.assertTrue(results[4] == 0x8000000000000000L); in checkConvL()
274 Main.assertTrue(results[5] == 0); in checkConvL()
278 float[] results = new float[3]; in convF() local
279 results[0] = (float) i; in convF()
280 results[1] = (float) l; in convF()
281 results[2] = (float) d; in convF()
282 return results; in convF()
284 static void checkConvF(float[] results) { in checkConvF() argument
286 Main.assertTrue(results[0] == -2.0054409E9f); in checkConvF()
287 Main.assertTrue(results[1] == -8.613303E18f); in checkConvF()
288 Main.assertTrue(results[2] == -3.1415927f); in checkConvF()
292 double[] results = new double[3]; in convD() local
293 results[0] = (double) i; in convD()
294 results[1] = (double) l; in convD()
295 results[2] = (double) f; in convD()
296 return results; in convD()
298 static void checkConvD(double[] results) { in checkConvD() argument
300 Main.assertTrue(results[0] == -2.005440939E9); in checkConvD()
301 Main.assertTrue(results[1] == -8.6133032459203287E18); in checkConvD()
302 Main.assertTrue(results[2] == 123.45600128173828); in checkConvD()