15 #include "absl/strings/internal/charconv_bigint.h"
19 #include "gtest/gtest.h"
23 namespace strings_internal {
52 a.ShiftLeft(84 * 32 - 3);
53 b.ShiftLeft(84 * 32 - 3);
54 c.ShiftLeft(84 * 32 - 3);
63 for (
int i = 1;
i <= 84 * 32; ++
i) {
79 "1474444211396924248063325089479706787923460402125687709454567433186613"
80 "6228083464060749874845919674257665016359189106695900028098437021384227"
81 "3285029708032466536084583113729486015826557532750465299832071590813090"
82 "2011853039837649252477307070509704043541368002938784757296893793903797"
83 "8180292336310543540677175225040919704702800559606097685920595947397024"
84 "8303316808753252115729411497720357971050627997031988036134171378490368"
85 "6008000778741115399296162550786288457245180872759047016734959330367829"
86 "5235612397427686310674725251378116268607113017720538636924549612987647"
87 "5767411074510311386444547332882472126067840027882117834454260409440463"
88 "9345147252664893456053258463203120637089916304618696601333953616715125"
89 "2115882482473279040772264257431663818610405673876655957323083702713344"
90 "4201105427930770976052393421467136557055");
94 for (
int i = 1;
i < 84*32; ++
i) {
117 for (
int out_of_bounds_shift :
120 big_shifted.
ShiftLeft(out_of_bounds_shift);
123 small_shifted.
ShiftLeft(out_of_bounds_shift);
131 "933262154439441526816992388562667004907159682643816214685929638952175999"
132 "932299156089414639761565182862536979208272237582511852109168640000000000"
146 "7886578673647905035523632139321850622951359776871732632947425332443594"
147 "4996340334292030428401198462390417721213891963883025764279024263710506"
148 "1926624952829931113462857270763317237396988943922445621451664240254033"
149 "2918641312274282948532775242424075739032403212574055795686602260319041"
150 "7032406235170085879617892222278962370389737472000000000000000000000000"
151 "0000000000000000000000000");
163 for (
int a = 0 ;
a < 700;
a += 25) {
166 for (
int b = 0;
b < (700 -
a);
b += 25) {
182 BigUnsigned<4> all_bits_on(
"340282366920938463463374607431768211455");
206 for (
int i = 0;
i < 1160; ++
i) {
211 for (
int j = 0; j <
i; j++) {
221 for (
int i = 0;
i < 1160; ++
i) {
234 for (
int i = 0;
i < 800; ++
i) {
239 for (
int j = 0; j <
i; j++) {
247 for (
int i = 0;
i < 200; ++
i) {