aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoseZhang03 <rosezhang@google.com>2024-08-07 21:12:40 +0000
committerGitHub <noreply@github.com>2024-08-07 21:12:40 +0000
commit2d95dee0c06687814eeb5c883e305a7197e26a95 (patch)
tree965b87021ad7682de0548aa2c20a6f3ac6b350bd
parent6a3604ef8592edf39fedd6af8100aefafd6d931d (diff)
downloadllvm-2d95dee0c06687814eeb5c883e305a7197e26a95.zip
llvm-2d95dee0c06687814eeb5c883e305a7197e26a95.tar.gz
llvm-2d95dee0c06687814eeb5c883e305a7197e26a95.tar.bz2
[libc] math fuzzing MPFR include statement (#102358)
Updated the include statement for MPFR
-rw-r--r--libc/fuzzing/math/cos_fuzz.cpp2
-rw-r--r--libc/fuzzing/math/sin_fuzz.cpp2
-rw-r--r--libc/fuzzing/math/tan_fuzz.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/libc/fuzzing/math/cos_fuzz.cpp b/libc/fuzzing/math/cos_fuzz.cpp
index 3e4ad65..5b5ba0f 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 009b9f2..a5f0fa9 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 700ebb8..2a462fa 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