Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Generalize mp_get_double()
The current impl assumes a single libtommath digit can fit the entire mantissa of a double (53 bits, where 1 bit is implied), but DIGIT_BIT can be as low as 28 bits, which is insufficient. Fix by calculating the number of wanted digit from the size of DIGIT_BIT.
- Loading branch information
1 parent
8841c42
commit 49b7389
Showing
1 changed file
with
26 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters