[all-commits] [llvm/llvm-project] cfbcbc: [libc] fix MPFR rounding problems in fuzz test

michaelrj-google via All-commits all-commits at lists.llvm.org
Wed Jul 5 10:53:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cfbcbc8f88eda598a42806fdb92bef107d23c898
      https://github.com/llvm/llvm-project/commit/cfbcbc8f88eda598a42806fdb92bef107d23c898
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-07-05 (Wed, 05 Jul 2023)

  Changed paths:
    M libc/fuzzing/stdlib/CMakeLists.txt
    M libc/fuzzing/stdlib/strtofloat_fuzz.cpp
    M libc/src/__support/FPUtil/FloatProperties.h
    M libc/utils/MPFRWrapper/CMakeLists.txt
    M libc/utils/MPFRWrapper/MPFRUtils.cpp
    M utils/bazel/llvm-project-overlay/libc/utils/MPFRWrapper/BUILD.bazel

  Log Message:
  -----------
  [libc] fix MPFR rounding problems in fuzz test

The accuracy for the MPFR numbers in the strtofloat fuzz test was set
too high, causing rounding issues when rounding to a smaller final
result.

Reviewed By: lntue

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




More information about the All-commits mailing list