Skip to content

Tags: niekbouman/ctbignum

Tags

v0.7

Toggle v0.7's commit message
Fix: modified bit_length function to deal with inputting zero

Previously, bit_length(big_int<1, T>{0}), where T is some unsigned
integral type, caused Undefined Behavior.

Now, bit_length can properly deal with such input.
Note that we define the bit_length of zero to be 1.

v0.6

Toggle v0.6's commit message
Added <stdexcept> header to gcd.hpp

v0.5

Toggle v0.5's commit message
Fixed circular header dependency

v0.4

Toggle v0.4's commit message
Required standard is now C++20

Changed big_int definition, now uses unsigned-integral concept

v0.3

Toggle v0.3's commit message
Fixed warning in div function about division by zero

v0.2

Toggle v0.2's commit message
Small fix to place_at

v0.1

Toggle v0.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Update README.md

Add note about not every function being constant time.
(Thanks @mratsim for asking about this in [issue 47](#47) )