Home | History | Annotate | Download | only in cctest

Lines Matching full:bignum1

1102   Bignum bignum1;
1104 bignum1.AssignUInt16(1);
1106 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1107 CHECK(Bignum::Equal(bignum1, bignum2));
1108 CHECK(Bignum::LessEqual(bignum1, bignum2));
1109 CHECK(!Bignum::Less(bignum1, bignum2));
1111 bignum1.AssignUInt16(0);
1113 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1114 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1115 CHECK(!Bignum::Equal(bignum1, bignum2));
1116 CHECK(!Bignum::Equal(bignum2, bignum1));
1117 CHECK(Bignum::LessEqual(bignum1, bignum2));
1118 CHECK(!Bignum::LessEqual(bignum2, bignum1));
1119 CHECK(Bignum::Less(bignum1, bignum2));
1120 CHECK(!Bignum::Less(bignum2, bignum1));
1122 AssignHexString(&bignum1, "1234567890ABCDEF12345");
1124 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1126 AssignHexString(&bignum1, "1234567890ABCDEF12345");
1128 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1129 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1131 AssignHexString(&bignum1, "1234567890ABCDEF12345");
1132 bignum1.ShiftLeft(500);
1135 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1137 AssignHexString(&bignum1, "1234567890ABCDEF12345");
1138 bignum1.ShiftLeft(500);
1141 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1142 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1144 bignum1.AssignUInt16(1);
1145 bignum1.ShiftLeft(64);
1147 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1148 CHECK_EQ(0, Bignum::Compare(bignum2, bignum1));
1150 bignum1.AssignUInt16(1);
1151 bignum1.ShiftLeft(64);
1153 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1154 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1156 bignum1.AssignUInt16(1);
1157 bignum1.ShiftLeft(96);
1160 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1161 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1163 AssignHexString(&bignum1, "FFFFFFFFFFFFFFFF");
1166 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1167 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1169 AssignHexString(&bignum1, "FFFFFFFFFFFFFFFF");
1170 bignum1.ShiftLeft(32);
1173 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1174 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1176 AssignHexString(&bignum1, "FFFFFFFFFFFFFFFF");
1177 bignum1.ShiftLeft(32);
1180 CHECK_EQ(+1, Bignum::Compare(bignum1, bignum2));
1181 CHECK_EQ(-1, Bignum::Compare(bignum2, bignum1));
1183 AssignHexString(&bignum1, "FFFFFFFFFFFFFFFF");
1184 bignum1.ShiftLeft(32);
1187 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1188 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));
1190 AssignHexString(&bignum1, "100000000000000");
1193 CHECK_EQ(0, Bignum::Compare(bignum1, bignum2));
1194 CHECK_EQ(0, Bignum::Compare(bignum2, bignum1));
1196 AssignHexString(&bignum1, "100000000000001");
1199 CHECK_EQ(+1, Bignum::Compare(bignum1, bignum2));
1200 CHECK_EQ(-1, Bignum::Compare(bignum2, bignum1));
1202 AssignHexString(&bignum1, "200000000000000");
1205 CHECK_EQ(-1, Bignum::Compare(bignum1, bignum2));
1206 CHECK_EQ(+1, Bignum::Compare(bignum2, bignum1));