Lines Matching refs:results

338         int[] results = new int[10];  in intOperTest()  local
341 results[0] = x + y; in intOperTest()
342 results[1] = x - y; in intOperTest()
343 results[2] = x * y; in intOperTest()
344 results[3] = x * x; in intOperTest()
345 results[4] = x / y; in intOperTest()
346 results[5] = x % -y; in intOperTest()
347 results[6] = x & y; in intOperTest()
348 results[7] = x | y; in intOperTest()
349 results[8] = x ^ y; in intOperTest()
352 results[9] = x + ((((((((x + y) - y) * y) / y) % y) & y) | y) ^ y); in intOperTest()
356 int negOne = -results[5]; in intOperTest()
362 if (results[0] != 69997) { return 2;}; in intOperTest()
363 if (results[1] != 70003) { return 3;}; in intOperTest()
364 if (results[2] != -210000) { return 4;}; in intOperTest()
365 if (results[3] != 605032704) { return 5;}; in intOperTest()
366 if (results[4] != -23333) { return 6;}; in intOperTest()
367 if (results[5] != 1) { return 7;}; in intOperTest()
368 if (results[6] != 70000) { return 8;}; in intOperTest()
369 if (results[7] != -3) { return 9;}; in intOperTest()
370 if (results[8] != -70003) { return 10;}; in intOperTest()
371 if (results[9] != 70000) { return 11;}; in intOperTest()
382 int[] results = new int[10]; in lit16Test() local
385 results[0] = x + 1000; in lit16Test()
386 results[1] = 1000 - x; in lit16Test()
387 results[2] = x * 1000; in lit16Test()
388 results[3] = x / 1000; in lit16Test()
389 results[4] = x % 1000; in lit16Test()
390 results[5] = x & 1000; in lit16Test()
391 results[6] = x | -1000; in lit16Test()
392 results[7] = x ^ -1000; in lit16Test()
394 results[8] = x / 32769; in lit16Test()
395 results[9] = x / -32769; in lit16Test()
397 if (results[0] != 78777) { return 1; } in lit16Test()
398 if (results[1] != -76777) { return 2; } in lit16Test()
399 if (results[2] != 77777000) { return 3; } in lit16Test()
400 if (results[3] != 77) { return 4; } in lit16Test()
401 if (results[4] != 777) { return 5; } in lit16Test()
402 if (results[5] != 960) { return 6; } in lit16Test()
403 if (results[6] != -39) { return 7; } in lit16Test()
404 if (results[7] != -76855) { return 8; } in lit16Test()
405 if (results[8] != 2) { return 9; } in lit16Test()
406 if (results[9] != -2) { return 10; } in lit16Test()
415 int[] results = new int[9]; in lit8Test() local
418 results[0] = x + 10; in lit8Test()
419 results[1] = 10 - x; in lit8Test()
420 results[2] = x * 10; in lit8Test()
421 results[3] = x / 10; in lit8Test()
422 results[4] = x % 10; in lit8Test()
423 results[5] = x & 10; in lit8Test()
424 results[6] = x | -10; in lit8Test()
425 results[7] = x ^ -10; in lit8Test()
426 results[8] = x * -256; in lit8Test()
430 if (results[0] != -55545) {return 2; } in lit8Test()
431 if (results[1] != 55565) {return 3; } in lit8Test()
432 if (results[2] != -555550) {return 4; } in lit8Test()
433 if (results[3] != -5555) {return 5; } in lit8Test()
434 if (results[4] != -5) {return 6; } in lit8Test()
435 if (results[5] != 8) {return 7; } in lit8Test()
436 if (results[6] != -1) {return 8; } in lit8Test()
437 if (results[7] != 55563) {return 9; } in lit8Test()
438 if (results[8] != 14222080) {return 10; } in lit8Test()
447 int results[] = new int[4]; in intShiftTest() local
448 results[0] = value << dist; in intShiftTest()
449 results[1] = value >> dist; in intShiftTest()
450 results[2] = value >>> dist; in intShiftTest()
451 results[3] = (((value << dist) >> dist) >>> dist) << dist; in intShiftTest()
452 if (results[0] != 0x00aa0100) {return 1; } in intShiftTest()
453 if (results[1] != 0xffff00aa) {return 2; } in intShiftTest()
454 if (results[2] != 0x00ff00aa) {return 3; } in intShiftTest()
455 if (results[3] != 0xaa00) {return 4; } in intShiftTest()
464 long[] results = new long[10]; in longOperTest() local
467 results[0] = x + y; in longOperTest()
468 results[1] = x - y; in longOperTest()
469 results[2] = x * y; in longOperTest()
470 results[3] = x * x; in longOperTest()
471 results[4] = x / y; in longOperTest()
472 results[5] = x % -y; in longOperTest()
473 results[6] = x & y; in longOperTest()
474 results[7] = x | y; in longOperTest()
475 results[8] = x ^ y; in longOperTest()
477 results[9] = x + ((((((((x + y) - y) * y) / y) % y) & y) | y) ^ y); in longOperTest()
480 long negOne = -results[5]; in longOperTest()
484 if (results[0] != 69999999997L) { return 2; } in longOperTest()
485 if (results[1] != 70000000003L) { return 3; } in longOperTest()
486 if (results[2] != -210000000000L) { return 4; } in longOperTest()
487 if (results[3] != -6833923606740729856L) { return 5; } // overflow in longOperTest()
488 if (results[4] != -23333333333L) { return 6; } in longOperTest()
489 if (results[5] != 1) { return 7; } in longOperTest()
490 if (results[6] != 70000000000L) { return 8; } in longOperTest()
491 if (results[7] != -3) { return 9; } in longOperTest()
492 if (results[8] != -70000000003L) { return 10; } in longOperTest()
493 if (results[9] != 70000000000L) { return 11; } in longOperTest()
494 if (results.length != 10) { return 12; } in longOperTest()
502 long results[] = new long[4]; in longShiftTest() local
503 results[0] = value << dist; in longShiftTest()
504 results[1] = value >> dist; in longShiftTest()
505 results[2] = value >>> dist; in longShiftTest()
506 results[3] = (((value << dist) >> dist) >>> dist) << dist; in longShiftTest()
507 if (results[0] != 0x96deff00aa010000L) { return results[0]; } in longShiftTest()
508 if (results[1] != 0xffffd5aa96deff00L) { return results[1]; } in longShiftTest()
509 if (results[2] != 0x0000d5aa96deff00L) { return results[2]; } in longShiftTest()
510 if (results[3] != 0xffff96deff000000L) { return results[3]; } in longShiftTest()
511 if (results.length != 4) { return 5; } in longShiftTest()
513 return results[0]; // test return-long in longShiftTest()