[libc-commits] [PATCH] D124959: [libc] add uint128 implementation
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed May 4 13:39:38 PDT 2022
michaelrj created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
michaelrj requested review of this revision.
Some platforms don't support proper 128 bit integers, but some
algorithms use them, specifically string to float conversions. This adds
an implementation of uint128 that supports most of the major operators,
and also only uses 64 bit integers. This does not put this new class
into use, that will be in followup patches.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D124959
Files:
libc/src/__support/CMakeLists.txt
libc/src/__support/UInt128.h
libc/src/__support/str_to_float.h
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/uint128_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124959.427121.patch
Type: text/x-patch
Size: 17902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220504/4e38e32c/attachment-0001.bin>
More information about the libc-commits
mailing list