MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / bit_length

Method bit_length

Source/external/fast_float.h:2376–2379  ·  view source on GitHub ↗

get the number of bits in the bigint.

Source from the content-addressed store, hash-verified

2374
2375 // get the number of bits in the bigint.
2376 FASTFLOAT_CONSTEXPR20 int bit_length() const noexcept {
2377 int lz = ctlz();
2378 return int(limb_bits * vec.len()) - lz;
2379 }
2380
2381 FASTFLOAT_CONSTEXPR20 bool mul(limb y) noexcept {
2382 return small_mul(vec, y);

Callers 1

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected