• Home
  • Raw
  • Download

Lines Matching refs:Double

560     Math.min(1.0d, Double.NaN);
561 Assert.assertTrue(Double.isNaN(Math.min(1.0d, Double.NaN)));
562 Assert.assertTrue(Double.isNaN(Math.min(Double.NaN, 1.0d)));
569 Assert.assertEquals(Math.min(0.0d, Double.MAX_VALUE), 0.0d);
570 Assert.assertEquals(Math.min(Double.MIN_VALUE, 0.0d), 0.0d);
571 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE);
573 Assert.assertEquals(Math.min(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE);
577 Math.max(1.0d, Double.NaN);
578 Assert.assertTrue(Double.isNaN(Math.max(1.0d, Double.NaN)));
579 Assert.assertTrue(Double.isNaN(Math.max(Double.NaN, 1.0d)));
586 Assert.assertEquals(Math.max(0.0d, Double.MAX_VALUE), Double.MAX_VALUE);
587 Assert.assertEquals(Math.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
588 Assert.assertEquals(Math.max(Double.MIN_VALUE, Double.MAX_VALUE), Double.MAX_VALUE);
590 Assert.assertEquals(Math.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
591 Assert.assertEquals(Math.max(Double.MIN_VALUE, Double.MIN_VALUE), Double.MIN_VALUE);
619 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
620 Double.longBitsToDouble(0x432FFFFFFFFFFFFEl), 0.0);
622 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
623 Double.longBitsToDouble(0x4330000000000000l), 0.0);
625 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x4330000000000000l)),
626 Double.longBitsToDouble(0x4330000000000000l), 0.0);
628 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
629 Double.longBitsToDouble(0x433FFFFFFFFFFFFFl), 0.0);
631 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x4340000000000000l)),
632 Double.longBitsToDouble(0x4340000000000000l), 0.0);
634 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
635 Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl), 0.0);
637 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43E0000000000000l)),
638 Double.longBitsToDouble(0x43E0000000000000l), 0.0);
640 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0x43F0000000000000l)),
641 Double.longBitsToDouble(0x43F0000000000000l), 0.0);
643 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
644 Double.longBitsToDouble(0xC32FFFFFFFFFFFFCl), 0.0);
646 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
647 Double.longBitsToDouble(0xC32FFFFFFFFFFFFEl), 0.0);
649 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC330000000000000l)),
650 Double.longBitsToDouble(0xC330000000000000l), 0.0);
652 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
653 Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl), 0.0);
655 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC340000000000000l)),
656 Double.longBitsToDouble(0xC340000000000000l), 0.0);
658 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
659 Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl), 0.0);
661 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3E0000000000000l)),
662 Double.longBitsToDouble(0xC3E0000000000000l), 0.0);
664 Assert.assertEquals(Math.ceil(Double.longBitsToDouble(0xC3F0000000000000l)),
665 Double.longBitsToDouble(0xC3F0000000000000l), 0.0);
666 Assert.assertEquals(Math.ceil(Double.NaN), Double.NaN, 0.0);
667 Assert.assertEquals(Math.ceil(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
668 Assert.assertEquals(Math.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
686 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
687 Double.longBitsToDouble(0x432FFFFFFFFFFFFCl), 0.0);
689 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
690 Double.longBitsToDouble(0x432FFFFFFFFFFFFEl), 0.0);
692 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x4330000000000000l)),
693 Double.longBitsToDouble(0x4330000000000000l), 0.0);
695 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
696 Double.longBitsToDouble(0x433FFFFFFFFFFFFFl), 0.0);
698 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x4340000000000000l)),
699 Double.longBitsToDouble(0x4340000000000000l), 0.0);
701 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
702 Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl), 0.0);
704 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43E0000000000000l)),
705 Double.longBitsToDouble(0x43E0000000000000l), 0.0);
707 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0x43F0000000000000l)),
708 Double.longBitsToDouble(0x43F0000000000000l), 0.0);
710 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
711 Double.longBitsToDouble(0xC32FFFFFFFFFFFFEl), 0.0);
713 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
714 Double.longBitsToDouble(0xC330000000000000l), 0.0);
716 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC330000000000000l)),
717 Double.longBitsToDouble(0xC330000000000000l), 0.0);
719 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
720 Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl), 0.0);
722 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC340000000000000l)),
723 Double.longBitsToDouble(0xC340000000000000l), 0.0);
725 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
726 Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl), 0.0);
728 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3E0000000000000l)),
729 Double.longBitsToDouble(0xC3E0000000000000l), 0.0);
731 Assert.assertEquals(Math.floor(Double.longBitsToDouble(0xC3F0000000000000l)),
732 Double.longBitsToDouble(0xC3F0000000000000l), 0.0);
733 Assert.assertEquals(Math.floor(Double.NaN), Double.NaN, 0.0);
734 Assert.assertEquals(Math.floor(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
735 Assert.assertEquals(Math.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
756 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x432FFFFFFFFFFFFDl)),
757 Double.longBitsToDouble(0x432FFFFFFFFFFFFCl), 0.0);
759 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x432FFFFFFFFFFFFFl)),
760 Double.longBitsToDouble(0x4330000000000000l), 0.0);
762 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x4330000000000000l)),
763 Double.longBitsToDouble(0x4330000000000000l), 0.0);
765 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x433FFFFFFFFFFFFFl)),
766 Double.longBitsToDouble(0x433FFFFFFFFFFFFFl), 0.0);
768 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x4340000000000000l)),
769 Double.longBitsToDouble(0x4340000000000000l), 0.0);
771 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl)),
772 Double.longBitsToDouble(0x43DFFFFFFFFFFFFFl), 0.0);
774 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43E0000000000000l)),
775 Double.longBitsToDouble(0x43E0000000000000l), 0.0);
777 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0x43F0000000000000l)),
778 Double.longBitsToDouble(0x43F0000000000000l), 0.0);
780 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC32FFFFFFFFFFFFDl)),
781 Double.longBitsToDouble(0xC32FFFFFFFFFFFFCl), 0.0);
783 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC32FFFFFFFFFFFFFl)),
784 Double.longBitsToDouble(0xC330000000000000l), 0.0);
786 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC330000000000000l)),
787 Double.longBitsToDouble(0xC330000000000000l), 0.0);
789 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl)),
790 Double.longBitsToDouble(0xC33FFFFFFFFFFFFFl), 0.0);
792 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC340000000000000l)),
793 Double.longBitsToDouble(0xC340000000000000l), 0.0);
795 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl)),
796 Double.longBitsToDouble(0xC3DFFFFFFFFFFFFFl), 0.0);
798 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3E0000000000000l)),
799 Double.longBitsToDouble(0xC3E0000000000000l), 0.0);
801 Assert.assertEquals(Math.rint(Double.longBitsToDouble(0xC3F0000000000000l)),
802 Double.longBitsToDouble(0xC3F0000000000000l), 0.0);
803 Assert.assertEquals(Math.rint(Double.NaN), Double.NaN, 0.0);
804 Assert.assertEquals(Math.rint(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
805 Assert.assertEquals(Math.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
831 Assert.assertEquals(Math.round(Double.NaN), (long)+0.0d);
834 Assert.assertEquals(Math.round(Double.longBitsToDouble(0x43F0000000000000l)),
836 Assert.assertEquals(Math.round(Double.longBitsToDouble(0xC3F0000000000000l)),
838 Assert.assertEquals(Math.round(Double.POSITIVE_INFINITY), Long.MAX_VALUE);
839 Assert.assertEquals(Math.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE);
881 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0x7FF4000000000000l)));
882 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0xFFF4000000000000l)));
884 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0x7FF8000000000000l)));
885 Assert.assertTrue(Double.isNaN(Double.longBitsToDouble(0xFFF8000000000000l)));
887 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x7FF0000000000000l)));
888 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0xFFF0000000000000l)));
890 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x7FE0000000000000l)));
891 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0xFFE0000000000000l)));
892 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0010000000000000l)));
893 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8010000000000000l)));
895 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0000000000000000l)));
896 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8000000000000000l)));
898 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0008000000000000l)));
899 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8008000000000000l)));
900 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x0000000000000001l)));
901 Assert.assertFalse(Double.isNaN(Double.longBitsToDouble(0x8000000000000001l)));
931 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FF4000000000000l)));
932 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFF4000000000000l)));
934 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FF8000000000000l)));
935 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFF8000000000000l)));
937 Assert.assertTrue(Double.isInfinite(Double.longBitsToDouble(0x7FF0000000000000l)));
938 Assert.assertTrue(Double.isInfinite(Double.longBitsToDouble(0xFFF0000000000000l)));
940 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x7FE0000000000000l)));
941 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0xFFE0000000000000l)));
942 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0010000000000000l)));
943 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8010000000000000l)));
945 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0000000000000000l)));
946 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8000000000000000l)));
948 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0008000000000000l)));
949 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8008000000000000l)));
950 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x0000000000000001l)));
951 Assert.assertFalse(Double.isInfinite(Double.longBitsToDouble(0x8000000000000001l)));
1071 StrictMath.min(1.0d, Double.NaN);
1072 Assert.assertTrue(Double.isNaN(StrictMath.min(1.0d, Double.NaN)));
1073 Assert.assertTrue(Double.isNaN(StrictMath.min(Double.NaN, 1.0d)));
1080 Assert.assertEquals(StrictMath.min(0.0d, Double.MAX_VALUE), 0.0d);
1081 Assert.assertEquals(StrictMath.min(Double.MIN_VALUE, 0.0d), 0.0d);
1082 Assert.assertEquals(StrictMath.min(Double.MIN_VALUE, Double.MAX_VALUE), Double.MIN_VALUE);
1086 StrictMath.max(1.0d, Double.NaN);
1087 Assert.assertTrue(Double.isNaN(StrictMath.max(1.0d, Double.NaN)));
1088 Assert.assertTrue(Double.isNaN(StrictMath.max(Double.NaN, 1.0d)));
1095 Assert.assertEquals(StrictMath.max(0.0d, Double.MAX_VALUE), Double.MAX_VALUE);
1096 Assert.assertEquals(StrictMath.max(Double.MIN_VALUE, 0.0d), Double.MIN_VALUE);
1097 Assert.assertEquals(StrictMath.max(Double.MIN_VALUE, Double.MAX_VALUE), Double.MAX_VALUE);
1124 Assert.assertEquals(StrictMath.ceil(Double.NaN), Double.NaN, 0.0);
1125 Assert.assertEquals(StrictMath.ceil(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1126 Assert.assertEquals(StrictMath.ceil(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1143 Assert.assertEquals(StrictMath.floor(Double.NaN), Double.NaN, 0.0);
1144 Assert.assertEquals(StrictMath.floor(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1145 Assert.assertEquals(StrictMath.floor(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1162 Assert.assertEquals(StrictMath.rint(Double.NaN), Double.NaN, 0.0);
1163 Assert.assertEquals(StrictMath.rint(Double.POSITIVE_INFINITY), Double.POSITIVE_INFINITY, 0.0);
1164 Assert.assertEquals(StrictMath.rint(Double.NEGATIVE_INFINITY), Double.NEGATIVE_INFINITY, 0.0);
1190 Assert.assertEquals(StrictMath.round(Double.NaN), (long)+0.0d);
1193 Assert.assertEquals(StrictMath.round(Double.longBitsToDouble(0x43F0000000000000l)),
1195 Assert.assertEquals(StrictMath.round(Double.longBitsToDouble(0xC3F0000000000000l)),
1197 Assert.assertEquals(StrictMath.round(Double.POSITIVE_INFINITY), Long.MAX_VALUE);
1198 Assert.assertEquals(StrictMath.round(Double.NEGATIVE_INFINITY), Long.MIN_VALUE);
1259 Double.doubleToRawLongBits(-1.0);
1260 Assert.assertEquals(Double.doubleToRawLongBits(-1.0), 0xbff0000000000000L);
1261 Assert.assertEquals(Double.doubleToRawLongBits(0.0), 0x0000000000000000L);
1262 Assert.assertEquals(Double.doubleToRawLongBits(1.0), 0x3ff0000000000000L);
1263 Assert.assertEquals(Double.doubleToRawLongBits(Double.NaN), 0x7ff8000000000000L);
1264 Assert.assertEquals(Double.doubleToRawLongBits(Double.POSITIVE_INFINITY), 0x7ff0000000000000L);
1265 Assert.assertEquals(Double.doubleToRawLongBits(Double.NEGATIVE_INFINITY), 0xfff0000000000000L);
1269 Double.longBitsToDouble(0xbff0000000000000L);
1270 Assert.assertEquals(Double.longBitsToDouble(0xbff0000000000000L), -1.0);
1271 Assert.assertEquals(Double.longBitsToDouble(0x0000000000000000L), 0.0);
1272 Assert.assertEquals(Double.longBitsToDouble(0x3ff0000000000000L), 1.0);
1273 Assert.assertEquals(Double.longBitsToDouble(0x7ff8000000000000L), Double.NaN);
1274 Assert.assertEquals(Double.longBitsToDouble(0x7ff0000000000000L), Double.POSITIVE_INFINITY);
1275 Assert.assertEquals(Double.longBitsToDouble(0xfff0000000000000L), Double.NEGATIVE_INFINITY);