diff options
author | davidot <davidot@serenityos.org> | 2022-08-24 10:13:16 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-24 23:27:17 +0100 |
commit | 8b8cee31728b02a500ee530e081c7b767ebb68cd (patch) | |
tree | ffed639c462e42a9769d2145803a23f1294e7f98 /Kernel/Locking/LockRank.cpp | |
parent | 2290fbc2a01bc4cc0451a127e70199415415327d (diff) | |
download | serenity-8b8cee31728b02a500ee530e081c7b767ebb68cd.zip |
LibCrypto: Implement a (mostly) proper to_double for UnsignedBigInteger
SignedBigInteger can immediately use this by just negating the double if
the sign bit is set.
For simple cases (below 2^53) we can just convert via an u64, however
above that we need to extract the top 53 bits and use those as the
mantissa.
This function currently does not behave exactly as the JS spec specifies
however it is much less naive than the previous implementation.
Diffstat (limited to 'Kernel/Locking/LockRank.cpp')
0 files changed, 0 insertions, 0 deletions