[libc-commits] [libc] 2d95dee - [libc] math fuzzing MPFR include statement (#102358)
via libc-commits
libc-commits at lists.llvm.org
Wed Aug 7 14:12:44 PDT 2024
Author: RoseZhang03
Date: 2024-08-07T21:12:40Z
New Revision: 2d95dee0c06687814eeb5c883e305a7197e26a95
URL: https://github.com/llvm/llvm-project/commit/2d95dee0c06687814eeb5c883e305a7197e26a95
DIFF: https://github.com/llvm/llvm-project/commit/2d95dee0c06687814eeb5c883e305a7197e26a95.diff
LOG: [libc] math fuzzing MPFR include statement (#102358)
Updated the include statement for MPFR
Added:
Modified:
libc/fuzzing/math/cos_fuzz.cpp
libc/fuzzing/math/sin_fuzz.cpp
libc/fuzzing/math/tan_fuzz.cpp
Removed:
################################################################################
diff --git a/libc/fuzzing/math/cos_fuzz.cpp b/libc/fuzzing/math/cos_fuzz.cpp
index 3e4ad659fd3a57..5b5ba0f7de717f 100644
--- a/libc/fuzzing/math/cos_fuzz.cpp
+++ b/libc/fuzzing/math/cos_fuzz.cpp
@@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//
#include "src/math/cos.h"
+#include "utils/MPFRWrapper/mpfr_inc.h"
#include <math.h>
-#include <mpfr.h>
extern "C" int LLVMFuzzerTestOneInput(const double x) {
// remove NaN and inf as preconditions
diff --git a/libc/fuzzing/math/sin_fuzz.cpp b/libc/fuzzing/math/sin_fuzz.cpp
index 009b9f2080298e..a5f0fa95c15816 100644
--- a/libc/fuzzing/math/sin_fuzz.cpp
+++ b/libc/fuzzing/math/sin_fuzz.cpp
@@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//
#include "src/math/sin.h"
+#include "utils/MPFRWrapper/mpfr_inc.h"
#include <math.h>
-#include <mpfr.h>
extern "C" int LLVMFuzzerTestOneInput(const double x) {
// remove NaN and inf as preconditions
diff --git a/libc/fuzzing/math/tan_fuzz.cpp b/libc/fuzzing/math/tan_fuzz.cpp
index 700ebb80974c8e..2a462fa34fce4f 100644
--- a/libc/fuzzing/math/tan_fuzz.cpp
+++ b/libc/fuzzing/math/tan_fuzz.cpp
@@ -11,8 +11,8 @@
//===----------------------------------------------------------------------===//
#include "src/math/tan.h"
+#include "utils/MPFRWrapper/mpfr_inc.h"
#include <math.h>
-#include <mpfr.h>
extern "C" int LLVMFuzzerTestOneInput(const double x) {
// remove NaN and inf as preconditions
More information about the libc-commits
mailing list