#include <charconv_bigint.h>
Public Member Functions | |
| BigUnsigned () | |
| uint32_t | GetWord (int index) const |
| void | MultiplyBy (uint32_t v) |
| void | MultiplyBy (uint64_t v) |
| template<int M> | |
| void | MultiplyBy (const BigUnsigned< M > &other) |
| void | MultiplyByFiveToTheNth (int n) |
| void | MultiplyByTenToTheNth (int n) |
| void | SetToZero () |
| void | ShiftLeft (int count) |
| int | size () const |
| static_assert (max_words==4||max_words==84,"unsupported max_words value") | |
| std::string | ToString () const |
| const uint32_t * | words () const |
Static Public Member Functions | |
| static constexpr int | Digits10 () |
| static BigUnsigned | FiveToTheNth (int n) |
Private Member Functions | |
| void | AddWithCarry (int index, uint32_t value) |
| void | AddWithCarry (int index, uint64_t value) |
| template<uint32_t divisor> | |
| uint32_t | DivMod () |
| void | MultiplyBy (int other_size, const uint32_t *other_words) |
| void | MultiplyStep (int original_size, const uint32_t *other_words, int other_size, int step) |
| int | ReadDigits (const char *begin, const char *end, int significant_digits) |
Private Attributes | |
| int | size_ |
| uint32_t | words_ [max_words] |
Definition at line 54 of file charconv_bigint.h.
| absl::strings_internal::BigUnsigned< max_words >::BigUnsigned | ( | ) | [inline] |
Definition at line 59 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::AddWithCarry | ( | int | index, |
| uint32_t | value | ||
| ) | [inline, private] |
Definition at line 277 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::AddWithCarry | ( | int | index, |
| uint64_t | value | ||
| ) | [inline, private] |
Definition at line 293 of file charconv_bigint.h.
| static constexpr int absl::strings_internal::BigUnsigned< max_words >::Digits10 | ( | ) | [inline, static] |
Definition at line 93 of file charconv_bigint.h.
| uint32_t absl::strings_internal::BigUnsigned< max_words >::DivMod | ( | ) | [inline, private] |
Definition at line 320 of file charconv_bigint.h.
| BigUnsigned< max_words > absl::strings_internal::BigUnsigned< max_words >::FiveToTheNth | ( | int | n | ) | [static] |
Definition at line 287 of file charconv_bigint.cc.
| uint32_t absl::strings_internal::BigUnsigned< max_words >::GetWord | ( | int | index | ) | const [inline] |
Definition at line 203 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyBy | ( | uint32_t | v | ) | [inline] |
Definition at line 127 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyBy | ( | uint64_t | v | ) | [inline] |
Definition at line 149 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyBy | ( | const BigUnsigned< M > & | other | ) | [inline] |
Definition at line 192 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyBy | ( | int | other_size, |
| const uint32_t * | other_words | ||
| ) | [inline, private] |
Definition at line 267 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyByFiveToTheNth | ( | int | n | ) | [inline] |
Definition at line 161 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyByTenToTheNth | ( | int | n | ) | [inline] |
Definition at line 172 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::MultiplyStep | ( | int | original_size, |
| const uint32_t * | other_words, | ||
| int | other_size, | ||
| int | step | ||
| ) | [private] |
Definition at line 315 of file charconv_bigint.cc.
| int absl::strings_internal::BigUnsigned< max_words >::ReadDigits | ( | const char * | begin, |
| const char * | end, | ||
| int | significant_digits | ||
| ) | [private] |
Definition at line 192 of file charconv_bigint.cc.
| void absl::strings_internal::BigUnsigned< max_words >::SetToZero | ( | ) | [inline] |
Definition at line 196 of file charconv_bigint.h.
| void absl::strings_internal::BigUnsigned< max_words >::ShiftLeft | ( | int | count | ) | [inline] |
Definition at line 99 of file charconv_bigint.h.
| int absl::strings_internal::BigUnsigned< max_words >::size | ( | ) | const [inline] |
Definition at line 214 of file charconv_bigint.h.
| absl::strings_internal::BigUnsigned< max_words >::static_assert | ( | max_words | = =4||max_words==84, |
| "unsupported max_words value" | |||
| ) |
| std::string absl::strings_internal::BigUnsigned< max_words >::ToString | ( | ) | const |
Definition at line 338 of file charconv_bigint.cc.
| const uint32_t* absl::strings_internal::BigUnsigned< max_words >::words | ( | ) | const [inline] |
Definition at line 215 of file charconv_bigint.h.
int absl::strings_internal::BigUnsigned< max_words >::size_ [private] |
Definition at line 342 of file charconv_bigint.h.
uint32_t absl::strings_internal::BigUnsigned< max_words >::words_[max_words] [private] |
Definition at line 343 of file charconv_bigint.h.