[all-commits] [llvm/llvm-project] 155725: [libc] Add Int<> type and fix (U)Int<128> compatib...

lntue via All-commits all-commits at lists.llvm.org
Tue Jun 13 06:41:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1557256ab02eab80557dbdb37631c7170bf46cfa
      https://github.com/llvm/llvm-project/commit/1557256ab02eab80557dbdb37631c7170bf46cfa
  Author: Tue Ly <lntue at google.com>
  Date:   2023-06-13 (Tue, 13 Jun 2023)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    M libc/src/__support/FPUtil/generic/sqrt.h
    M libc/src/__support/FPUtil/generic/sqrt_80_bit_long_double.h
    M libc/src/__support/FPUtil/x86_64/LongDoubleBits.h
    M libc/src/__support/UInt.h
    M libc/src/__support/UInt128.h
    M libc/src/__support/builtin_wrappers.h
    M libc/src/__support/float_to_string.h
    M libc/src/__support/integer_to_string.h
    M libc/src/__support/str_to_float.h
    M libc/src/math/generic/CMakeLists.txt
    M libc/src/math/generic/log_range_reduction.h
    M libc/src/stdio/printf_core/char_converter.h
    M libc/src/stdio/printf_core/float_dec_converter.h
    M libc/src/stdio/printf_core/float_hex_converter.h
    M libc/src/stdio/printf_core/float_inf_nan_converter.h
    M libc/src/stdio/printf_core/int_converter.h
    M libc/test/UnitTest/LibcTest.cpp
    M libc/test/src/__support/uint_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] Add Int<> type and fix (U)Int<128> compatibility issues.

Add Int<> and Int128 types to replace the usage of __int128_t in math
functions.  Clean up to make sure that (U)Int128 and __(u)int128_t are
interchangeable in the code base.

Reviewed By: sivachandra, mikhail.ramalho

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




More information about the All-commits mailing list