[all-commits] [llvm/llvm-project] a2306b: [libc] Refactor `BigInt` (#86137)

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Thu Apr 4 01:27:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a2306b65d223212dcfafe12c7299262d8d4fdcb4
      https://github.com/llvm/llvm-project/commit/a2306b65d223212dcfafe12c7299262d8d4fdcb4
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2024-04-04 (Thu, 04 Apr 2024)

  Changed paths:
    M libc/fuzzing/CMakeLists.txt
    A libc/fuzzing/__support/CMakeLists.txt
    A libc/fuzzing/__support/uint_fuzz.cpp
    M libc/src/__support/FPUtil/dyadic_float.h
    M libc/src/__support/UInt.h
    M libc/src/__support/float_to_string.h
    M libc/src/__support/integer_literals.h
    M libc/src/__support/math_extras.h
    M libc/src/__support/number_pair.h
    M libc/test/src/__support/integer_literals_test.cpp
    M libc/test/src/__support/math_extras_test.cpp
    M libc/test/src/__support/uint_test.cpp
    M utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel

  Log Message:
  -----------
  [libc] Refactor `BigInt` (#86137)

This patch moves most of the multiprecision logic to the `multiword`
namespace and simplifies some logic in `BigInt`. It also fully
implements the mask and count functions and increases test coverage.

`math_extras.h` is also reworked to make it more concise.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list