[libc-commits] [libc] [libc] math fuzzing MPFR include statement (PR #102358)
via libc-commits
libc-commits at lists.llvm.org
Wed Aug 7 12:57:29 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: None (RoseZhang03)
<details>
<summary>Changes</summary>
Updated the include statement for MPFR
---
Full diff: https://github.com/llvm/llvm-project/pull/102358.diff
3 Files Affected:
- (modified) libc/fuzzing/math/cos_fuzz.cpp (+1-1)
- (modified) libc/fuzzing/math/sin_fuzz.cpp (+1-1)
- (modified) libc/fuzzing/math/tan_fuzz.cpp (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/102358
More information about the libc-commits
mailing list