[all-commits] [llvm/llvm-project] 117095: [libc] add uint128 implementation

michaelrj-google via All-commits all-commits at lists.llvm.org
Thu May 12 11:17:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1170951c737773e22b686cac195e0d13b2441374
      https://github.com/llvm/llvm-project/commit/1170951c737773e22b686cac195e0d13b2441374
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-05-12 (Thu, 12 May 2022)

  Changed paths:
    M libc/src/__support/CPP/CMakeLists.txt
    M libc/src/__support/CPP/TypeTraits.h
    A libc/src/__support/CPP/UInt.h
    M libc/src/__support/FPUtil/CMakeLists.txt
    R libc/src/__support/FPUtil/UInt.h
    M libc/src/__support/FPUtil/XFloat.h
    M libc/src/math/generic/CMakeLists.txt
    M libc/test/src/__support/CMakeLists.txt
    A libc/test/src/__support/uint128_test.cpp
    M libc/utils/UnitTest/LibcTest.cpp

  Log Message:
  -----------
  [libc] add uint128 implementation

Some platforms don't support proper 128 bit integers, but some
algorithms use them, such as any that use long doubles. This patch
modifies the existing UInt class to support the necessary operators.
This does not put this new class into use, that will be in followup
patches.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D124959




More information about the All-commits mailing list