From 2e2485ce05bce85bf092ba0752854afa14b92dad Mon Sep 17 00:00:00 2001 From: Xiaolin Tang Date: Wed, 23 Nov 2022 11:45:00 +0800 Subject: Use GCC builtins for logb functions if desired. This patch is using the corresponding GCC builtin for logbf, logb, logbl and logbf128 if the USE_FUNCTION_BUILTIN macros are defined to one in math-use-builtins-function.h. Co-Authored-By: Xi Ruoyao --- sysdeps/generic/math-use-builtins-logb.h | 4 ++++ sysdeps/generic/math-use-builtins.h | 1 + 2 files changed, 5 insertions(+) create mode 100644 sysdeps/generic/math-use-builtins-logb.h (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/math-use-builtins-logb.h b/sysdeps/generic/math-use-builtins-logb.h new file mode 100644 index 0000000000..e816a7e0a1 --- /dev/null +++ b/sysdeps/generic/math-use-builtins-logb.h @@ -0,0 +1,4 @@ +#define USE_LOGB_BUILTIN 0 +#define USE_LOGBF_BUILTIN 0 +#define USE_LOGBL_BUILTIN 0 +#define USE_LOGBF128_BUILTIN 0 diff --git a/sysdeps/generic/math-use-builtins.h b/sysdeps/generic/math-use-builtins.h index dddeaa4ea8..c59612a878 100644 --- a/sysdeps/generic/math-use-builtins.h +++ b/sysdeps/generic/math-use-builtins.h @@ -39,5 +39,6 @@ #include #include #include +#include #endif /* MATH_USE_BUILTINS_H */ -- cgit 1.4.1