[all-commits] [llvm/llvm-project] cb8472: [libc] add division, modulo, and power to UInt

michaelrj-google via All-commits all-commits at lists.llvm.org
Thu Sep 1 11:22:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb84721c3c48778e42474c4f333225f1940337e0
      https://github.com/llvm/llvm-project/commit/cb84721c3c48778e42474c4f333225f1940337e0
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

  Changed paths:
    M libc/src/__support/UInt.h
    M libc/test/src/__support/CMakeLists.txt
    M libc/test/src/__support/uint128_test.cpp
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel

  Log Message:
  -----------
  [libc] add division, modulo, and power to UInt

This adds division and power implementations to UInt. Modulo and
division are handled by the same function. These are necessary for some
higher order mathematics, often involving large floating point numbers.

Reviewed By: sivachandra, lntue

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




More information about the All-commits mailing list