Lines Matching full:bignum2
54 Bignum bignum2;
94 bignum2.AssignBignum(bignum);
95 CHECK(bignum2.ToHexString(buffer, kBufferSize));
855 Bignum bignum2;
856 AssignHexString(&bignum2, "3DA774C07FB5DF54284D09C675A492165B830D5DAAEB2A7501"
865 CHECK(bignum2.ToHexString(buffer, kBufferSize));
876 bignum.AssignBignum(bignum2);
887 bignum.AssignBignum(bignum2);
898 bignum.AssignBignum(bignum2);
909 bignum.AssignBignum(bignum2);
920 bignum.AssignBignum(bignum2);
932 bignum.AssignBignum(bignum2);
945 bignum.AssignBignum(bignum2);
959 bignum.AssignBignum(bignum2);
1065 Bignum bignum2;
1067 bignum2.AssignUInt16(1);
1068 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1069 CHECK(Bignum::Equal(bignum1, bignum2));
1070 CHECK(Bignum::LessEqual(bignum1, bignum2));
1071 CHECK(!Bignum::Less(bignum1, bignum2));
1074 bignum2.AssignUInt16(1);
1075 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1076 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1077 CHECK(!Bignum::Equal(bignum1, bignum2));
1078 CHECK(!Bignum::Equal(bignum2, bignum1));
1079 CHECK(Bignum::LessEqual(bignum1, bignum2));
1080 CHECK(!Bignum::LessEqual(bignum2, bignum1));
1081 CHECK(Bignum::Less(bignum1, bignum2));
1082 CHECK(!Bignum::Less(bignum2, bignum1));
1085 AssignHexString(&bignum2, "1234567890ABCDEF12345");
1086 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1089 AssignHexString(&bignum2, "1234567890ABCDEF12346");
1090 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1091 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1095 AssignHexString(&bignum2, "1234567890ABCDEF12345");
1096 bignum2.ShiftLeft(500);
1097 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1101 AssignHexString(&bignum2, "1234567890ABCDEF12346");
1102 bignum2.ShiftLeft(500);
1103 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1104 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1108 AssignHexString(&bignum2, "10000000000000000");
1109 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1110 CHECK_EQ(0, Bignum::Compare(bignum2, bignum1));
1114 AssignHexString(&bignum2, "10000000000000001");
1115 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1116 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1120 AssignHexString(&bignum2, "10000000000000001");
1121 bignum2.ShiftLeft(32);
1122 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1123 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1126 bignum2.AssignUInt16(1);
1127 bignum2.ShiftLeft(64);
1128 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1129 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1133 bignum2.AssignUInt16(1);
1134 bignum2.ShiftLeft(96);
1135 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1136 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1140 bignum2.AssignUInt16(1);
1141 bignum2.ShiftLeft(95);
1142 CHECK_EQ(+1, Bignum::Compare(bignum1, bignum2));
1143 CHECK_EQ(-1, Bignum::Compare(bignum2, bignum1));
1147 bignum2.AssignUInt16(1);
1148 bignum2.ShiftLeft(100);
1149 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1150 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1153 bignum2.AssignUInt16(1);
1154 bignum2.ShiftLeft(14*4);
1155 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1156 CHECK_EQ(0, Bignum::Compare(bignum2, bignum1));
1159 bignum2.AssignUInt16(1);
1160 bignum2.ShiftLeft(14*4);
1161 CHECK_EQ(+1, Bignum::Compare(bignum1, bignum2));
1162 CHECK_EQ(-1, Bignum::Compare(bignum2, bignum1));
1165 bignum2.AssignUInt16(3);
1166 bignum2.ShiftLeft(14*4);
1167 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1168 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));