[libc-commits] [PATCH] D138541: [libc][math] Implement full multiplication and quick_mul_hi for UInt class.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Nov 22 20:42:57 PST 2022


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

Implement full multiplication UInt<A> * UInt<B> -> UInt<A + B> and
quick_mul_hi that returns the higher half of the product UInt<A> * UInt<A>.
These 2 functions will be used for dyadic floating point class.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138541

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138541.477376.patch
Type: text/x-patch
Size: 9438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20221123/8b4e6a2c/attachment.bin>


More information about the libc-commits mailing list