Home | History | Annotate | Download | only in src

Lines Matching refs:expectEqualsInt

368       expectEqualsInt(0, rotateLeftBoolean(false, i));
369 expectEqualsInt(1 << i, rotateLeftBoolean(true, i));
374 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 0));
375 expectEqualsInt(0x00000002, rotateLeftByte((byte)0x01, 1));
376 expectEqualsInt(0x80000000, rotateLeftByte((byte)0x01, 31));
377 expectEqualsInt(0x00000001, rotateLeftByte((byte)0x01, 32)); // overshoot
378 expectEqualsInt(0xFFFFFF03, rotateLeftByte((byte)0x81, 1));
379 expectEqualsInt(0xFFFFFE07, rotateLeftByte((byte)0x81, 2));
380 expectEqualsInt(0x00000120, rotateLeftByte((byte)0x12, 4));
381 expectEqualsInt(0xFFFF9AFF, rotateLeftByte((byte)0x9A, 8));
384 expectEqualsInt(0x00000000, rotateLeftByte((byte)0x0000, i));
385 expectEqualsInt(0xFFFFFFFF, rotateLeftByte((byte)0xFFFF, i));
386 expectEqualsInt((1 << j), rotateLeftByte((byte)0x0001, i));
387 expectEqualsInt((0x12 << j) | (0x12 >>> -j), rotateLeftByte((byte)0x12, i));
392 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 0));
393 expectEqualsInt(0x00000002, rotateLeftShort((short)0x0001, 1));
394 expectEqualsInt(0x80000000, rotateLeftShort((short)0x0001, 31));
395 expectEqualsInt(0x00000001, rotateLeftShort((short)0x0001, 32)); // overshoot
396 expectEqualsInt(0xFFFF0003, rotateLeftShort((short)0x8001, 1));
397 expectEqualsInt(0xFFFE0007, rotateLeftShort((short)0x8001, 2));
398 expectEqualsInt(0x00012340, rotateLeftShort((short)0x1234, 4));
399 expectEqualsInt(0xFF9ABCFF, rotateLeftShort((short)0x9ABC, 8));
402 expectEqualsInt(0x00000000, rotateLeftShort((short)0x0000, i));
403 expectEqualsInt(0xFFFFFFFF, rotateLeftShort((short)0xFFFF, i));
404 expectEqualsInt((1 << j), rotateLeftShort((short)0x0001, i));
405 expectEqualsInt((0x1234 << j) | (0x1234 >>> -j), rotateLeftShort((short)0x1234, i));
410 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 0));
411 expectEqualsInt(0x00000002, rotateLeftChar((char)0x0001, 1));
412 expectEqualsInt(0x80000000, rotateLeftChar((char)0x0001, 31));
413 expectEqualsInt(0x00000001, rotateLeftChar((char)0x0001, 32)); // overshoot
414 expectEqualsInt(0x00010002, rotateLeftChar((char)0x8001, 1));
415 expectEqualsInt(0x00020004, rotateLeftChar((char)0x8001, 2));
416 expectEqualsInt(0x00012340, rotateLeftChar((char)0x1234, 4));
417 expectEqualsInt(0x009ABC00, rotateLeftChar((char)0x9ABC, 8));
418 expectEqualsInt(0x00FF0000, rotateLeftChar((char)0xFF00, 8));
421 expectEqualsInt(0x00000000, rotateLeftChar((char)0x0000, i));
422 expectEqualsInt((1 << j), rotateLeftChar((char)0x0001, i));
423 expectEqualsInt((0x1234 << j) | (0x1234 >>> -j), rotateLeftChar((char)0x1234, i));
428 expectEqualsInt(0x00000001, rotateLeftInt(0x00000001, 0));
429 expectEqualsInt(0x00000002, rotateLeftInt(0x00000001, 1));
430 expectEqualsInt(0x80000000, rotateLeftInt(0x00000001, 31));
431 expectEqualsInt(0x00000001, rotateLeftInt(0x00000001, 32)); // overshoot
432 expectEqualsInt(0x00000003, rotateLeftInt(0x80000001, 1));
433 expectEqualsInt(0x00000006, rotateLeftInt(0x80000001, 2));
434 expectEqualsInt(0x23456781, rotateLeftInt(0x12345678, 4));
435 expectEqualsInt(0xBCDEF09A, rotateLeftInt(0x9ABCDEF0, 8));
438 expectEqualsInt(0x00000000, rotateLeftInt(0x00000000, i));
439 expectEqualsInt(0xFFFFFFFF, rotateLeftInt(0xFFFFFFFF, i));
440 expectEqualsInt(1 << j, rotateLeftInt(0x00000001, i));
441 expectEqualsInt((0x12345678 << j) | (0x12345678 >>> -j), rotateLeftInt(0x12345678, i));
467 expectEqualsInt(0, rotateRightBoolean(false, i));
468 expectEqualsInt(1 << (32 - i), rotateRightBoolean(true, i));
473 expectEqualsInt(0xFFFFFF80, rotateRightByte((byte)0x80, 0));
474 expectEqualsInt(0x7FFFFFC0, rotateRightByte((byte)0x80, 1));
475 expectEqualsInt(0xFFFFFF01, rotateRightByte((byte)0x80, 31));
476 expectEqualsInt(0xFFFFFF80, rotateRightByte((byte)0x80, 32)); // overshoot
477 expectEqualsInt(0xFFFFFFC0, rotateRightByte((byte)0x81, 1));
478 expectEqualsInt(0x7FFFFFE0, rotateRightByte((byte)0x81, 2));
479 expectEqualsInt(0x20000001, rotateRightByte((byte)0x12, 4));
480 expectEqualsInt(0x9AFFFFFF, rotateRightByte((byte)0x9A, 8));
483 expectEqualsInt(0x00000000, rotateRightByte((byte)0x00, i));
484 expectEqualsInt(0xFFFFFFFF, rotateRightByte((byte)0xFF, i));
485 expectEqualsInt(1 << (32 - j), rotateRightByte((byte)0x01, i));
486 expectEqualsInt((0x12 >>> j) | (0x12 << -j), rotateRightByte((byte)0x12, i));
491 expectEqualsInt(0xFFFF8000, rotateRightShort((short)0x8000, 0));
492 expectEqualsInt(0x7FFFC000, rotateRightShort((short)0x8000, 1));
493 expectEqualsInt(0xFFFF0001, rotateRightShort((short)0x8000, 31));
494 expectEqualsInt(0xFFFF8000, rotateRightShort((short)0x8000, 32)); // overshoot
495 expectEqualsInt(0xFFFFC000, rotateRightShort((short)0x8001, 1));
496 expectEqualsInt(0x7FFFE000, rotateRightShort((short)0x8001, 2));
497 expectEqualsInt(0x40000123, rotateRightShort((short)0x1234, 4));
498 expectEqualsInt(0xBCFFFF9A, rotateRightShort((short)0x9ABC, 8));
501 expectEqualsInt(0x00000000, rotateRightShort((short)0x0000, i));
502 expectEqualsInt(0xFFFFFFFF, rotateRightShort((short)0xFFFF, i));
503 expectEqualsInt(1 << (32 - j), rotateRightShort((short)0x0001, i));
504 expectEqualsInt((0x1234 >>> j) | (0x1234 << -j), rotateRightShort((short)0x1234, i));
509 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 0));
510 expectEqualsInt(0x00004000, rotateRightChar((char)0x8000, 1));
511 expectEqualsInt(0x00010000, rotateRightChar((char)0x8000, 31));
512 expectEqualsInt(0x00008000, rotateRightChar((char)0x8000, 32)); // overshoot
513 expectEqualsInt(0x80004000, rotateRightChar((char)0x8001, 1));
514 expectEqualsInt(0x40002000, rotateRightChar((char)0x8001, 2));
515 expectEqualsInt(0x40000123, rotateRightChar((char)0x1234, 4));
516 expectEqualsInt(0xBC00009A, rotateRightChar((char)0x9ABC, 8));
519 expectEqualsInt(0x00000000, rotateRightChar((char)0x0000, i));
520 expectEqualsInt(1 << (32 - j), rotateRightChar((char)0x0001, i));
521 expectEqualsInt((0x1234 >>> j) | (0x1234 << -j), rotateRightChar((char)0x1234, i));
526 expectEqualsInt(0x80000000, rotateRightInt(0x80000000, 0));
527 expectEqualsInt(0x40000000, rotateRightInt(0x80000000, 1));
528 expectEqualsInt(0x00000001, rotateRightInt(0x80000000, 31));
529 expectEqualsInt(0x80000000, rotateRightInt(0x80000000, 32)); // overshoot
530 expectEqualsInt(0xC0000000, rotateRightInt(0x80000001, 1));
531 expectEqualsInt(0x60000000, rotateRightInt(0x80000001, 2));
532 expectEqualsInt(0x81234567, rotateRightInt(0x12345678, 4));
533 expectEqualsInt(0xF09ABCDE, rotateRightInt(0x9ABCDEF0, 8));
536 expectEqualsInt(0x00000000, rotateRightInt(0x00000000, i));
537 expectEqualsInt(0xFFFFFFFF, rotateRightInt(0xFFFFFFFF, i));
538 expectEqualsInt(0x80000000 >>> j, rotateRightInt(0x80000000, i));
539 expectEqualsInt((0x12345678 >>> j) | (0x12345678 << -j), rotateRightInt(0x12345678, i));
564 expectEqualsInt(0x00000001, rotateLeftIntWithByteDistance(0x00000001, (byte)0));
565 expectEqualsInt(0x00000002, rotateLeftIntWithByteDistance(0x00000001, (byte)1));
566 expectEqualsInt(0x80000000, rotateLeftIntWithByteDistance(0x00000001, (byte)31));
567 expectEqualsInt(0x00000001, rotateLeftIntWithByteDistance(0x00000001, (byte)32)); // overshoot
568 expectEqualsInt(0x00000003, rotateLeftIntWithByteDistance(0x80000001, (byte)1));
569 expectEqualsInt(0x00000006, rotateLeftIntWithByteDistance(0x80000001, (byte)2));
570 expectEqualsInt(0x23456781, rotateLeftIntWithByteDistance(0x12345678, (byte)4));
571 expectEqualsInt(0xBCDEF09A, rotateLeftIntWithByteDistance(0x9ABCDEF0, (byte)8));
574 expectEqualsInt(0x00000000, rotateLeftIntWithByteDistance(0x00000000, i));
575 expectEqualsInt(0xFFFFFFFF, rotateLeftIntWithByteDistance(0xFFFFFFFF, i));
576 expectEqualsInt(1 << j, rotateLeftIntWithByteDistance(0x00000001, i));
577 expectEqualsInt((0x12345678 << j) | (0x12345678 >>> -j),
583 expectEqualsInt(0x80000000, rotateRightIntWithByteDistance(0x80000000, (byte)0));
584 expectEqualsInt(0x40000000, rotateRightIntWithByteDistance(0x80000000, (byte)1));
585 expectEqualsInt(0x00000001, rotateRightIntWithByteDistance(0x80000000, (byte)31));
586 expectEqualsInt(0x80000000, rotateRightIntWithByteDistance(0x80000000, (byte)32)); // overshoot
587 expectEqualsInt(0xC0000000, rotateRightIntWithByteDistance(0x80000001, (byte)1));
588 expectEqualsInt(0x60000000, rotateRightIntWithByteDistance(0x80000001, (byte)2));
589 expectEqualsInt(0x81234567, rotateRightIntWithByteDistance(0x12345678, (byte)4));
590 expectEqualsInt(0xF09ABCDE, rotateRightIntWithByteDistance(0x9ABCDEF0, (byte)8));
593 expectEqualsInt(0x00000000, rotateRightIntWithByteDistance(0x00000000, i));
594 expectEqualsInt(0xFFFFFFFF, rotateRightIntWithByteDistance(0xFFFFFFFF, i));
595 expectEqualsInt(0x80000000 >>> j, rotateRightIntWithByteDistance(0x80000000, i));
596 expectEqualsInt((0x12345678 >>> j) | (0x12345678 << -j),
625 private static void expectEqualsInt(int expected, int result) {