[libc-commits] [PATCH] D137871: [libc][math] Improve the performance and error printing of UInt.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Nov 11 15:13:34 PST 2022


lntue created this revision.
lntue added reviewers: michaelrj, sivachandra, orex, cqlauter.
Herald added subscribers: ecnelises, tschuett.
Herald added projects: libc-project, All.
lntue requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137871

Files:
  libc/src/__support/CMakeLists.txt
  libc/src/__support/UInt.h
  libc/src/__support/number_pair.h
  libc/test/src/__support/uint128_test.cpp
  libc/utils/UnitTest/LibcTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137871.474870.patch
Type: text/x-patch
Size: 16124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221111/24f17f3c/attachment-0001.bin>


More information about the libc-commits mailing list