[all-commits] [llvm/llvm-project] 04c681: [libc] Specify rounding mode for strto[f|d] tests

Alex Brachet via All-commits all-commits at lists.llvm.org
Wed Jul 13 13:21:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 04c681d195647bc111e067726b0b1bf6025971ce
      https://github.com/llvm/llvm-project/commit/04c681d195647bc111e067726b0b1bf6025971ce
  Author: Alex Brachet <abrachet at google.com>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M libc/test/src/stdlib/strtod_test.cpp
    M libc/test/src/stdlib/strtof_test.cpp
    M libc/utils/MPFRWrapper/CMakeLists.txt
    M libc/utils/MPFRWrapper/MPFRUtils.cpp
    M libc/utils/MPFRWrapper/MPFRUtils.h
    M libc/utils/testutils/CMakeLists.txt
    A libc/utils/testutils/RoundingModeUtils.cpp
    A libc/utils/testutils/RoundingModeUtils.h

  Log Message:
  -----------
  [libc] Specify rounding mode for strto[f|d] tests

The specified rounding mode will be used and restored
to what it was before the test ran.

Additionally, it moves ForceRoundingMode and RoundingMode
out of MPFRUtils to be used in more places.

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




More information about the All-commits mailing list