diff options
author | Tue Ly <lntue@google.com> | 2022-11-11 18:04:56 -0500 |
---|---|---|
committer | Tue Ly <lntue@google.com> | 2022-11-15 14:17:59 -0500 |
commit | bc10a4108055eb169b8026b8d9bf618025bbedb8 (patch) | |
tree | bc9830cf6082b5b7074a55ffe5e1b644f38384ac /llvm/lib/Support/APFloat.cpp | |
parent | ea5be2571dc95edb8ee04d966addd6b58bfe7b85 (diff) | |
download | llvm-bc10a4108055eb169b8026b8d9bf618025bbedb8.zip llvm-bc10a4108055eb169b8026b8d9bf618025bbedb8.tar.gz llvm-bc10a4108055eb169b8026b8d9bf618025bbedb8.tar.bz2 |
[libc][math] Improve the performance and error printing of UInt.
Use add_with_carry builtin to improve the performance of
addition and multiplication of UInt class. For 128-bit, it is as
fast as using __uint128_t.
Microbenchmark for addition:
https://quick-bench.com/q/-5a6xM4T8rIXBhqMTtLE-DD2h8w
Microbenchmark for multiplication:
https://quick-bench.com/q/P2muLAzJ_W-VqWCuxEJ0CU0bLDg
Microbenchmark for shift right:
https://quick-bench.com/q/N-jkKXaVsGQ4AAv3k8VpsVkua5Y
Microbenchmark for shift left:
https://quick-bench.com/q/5-RzwF8UdslC-zuhNajXtXdzLRM
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D137871
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
0 files changed, 0 insertions, 0 deletions