[all-commits] [llvm/llvm-project] b1a91b: [libc][NFC] fix uint128 init in float properties (...

michaelrj-google via All-commits all-commits at lists.llvm.org
Mon Dec 11 10:46:25 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1a91b7ee0e26139beeac4deed86a7323a50ca60
      https://github.com/llvm/llvm-project/commit/b1a91b7ee0e26139beeac4deed86a7323a50ca60
  Author: michaelrj-google <71531609+michaelrj-google at users.noreply.github.com>
  Date:   2023-12-11 (Mon, 11 Dec 2023)

  Changed paths:
    M libc/src/__support/FPUtil/FloatProperties.h

  Log Message:
  -----------
  [libc][NFC] fix uint128 init in float properties (#75084)

An unsigned integer was being initialized with -1 to set all its bits to
1, but this doesn't work for the BigInt class which may be used as an
integer type on systems that don't support uint128 natively. This patch
moves the initialization to use ~T(0) instead.




More information about the All-commits mailing list