mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +00:00
LibCrypto: Add a constructor to (Un)SignedBigInteger taking a double
For now this will assume that the double given is exactly representable as an integer, so no NaN, infinity or rounding.
This commit is contained in:
parent
c87d10365b
commit
528891bf69
Notes:
sideshowbarker
2024-07-17 07:42:44 +09:00
Author: https://github.com/davidot
Commit: 528891bf69
Pull-request: https://github.com/SerenityOS/serenity/pull/15029
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/trflynn89
5 changed files with 161 additions and 8 deletions
|
@ -39,6 +39,8 @@ public:
|
|||
|
||||
explicit UnsignedBigInteger(u8 const* ptr, size_t length);
|
||||
|
||||
explicit UnsignedBigInteger(double value);
|
||||
|
||||
UnsignedBigInteger() = default;
|
||||
|
||||
[[nodiscard]] static UnsignedBigInteger create_invalid();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue