From a1981ecbfd4aec84dea26936d91c8ed9164f8b13 Mon Sep 17 00:00:00 2001 From: Xiaolin Tang Date: Wed, 23 Nov 2022 11:44:58 +0800 Subject: Use GCC builtins for llrint functions if desired. This patch is using the corresponding GCC builtin for llrintf, llrint, llrintl and llrintf128 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-llrint.h | 4 ++++ sysdeps/generic/math-use-builtins.h | 1 + 2 files changed, 5 insertions(+) create mode 100644 sysdeps/generic/math-use-builtins-llrint.h (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/math-use-builtins-llrint.h b/sysdeps/generic/math-use-builtins-llrint.h new file mode 100644 index 0000000000..ced6a327a1 --- /dev/null +++ b/sysdeps/generic/math-use-builtins-llrint.h @@ -0,0 +1,4 @@ +#define USE_LLRINT_BUILTIN 0 +#define USE_LLRINTF_BUILTIN 0 +#define USE_LLRINTL_BUILTIN 0 +#define USE_LLRINTF128_BUILTIN 0 diff --git a/sysdeps/generic/math-use-builtins.h b/sysdeps/generic/math-use-builtins.h index 3acec1d538..dddeaa4ea8 100644 --- a/sysdeps/generic/math-use-builtins.h +++ b/sysdeps/generic/math-use-builtins.h @@ -38,5 +38,6 @@ #include #include #include +#include #endif /* MATH_USE_BUILTINS_H */ -- cgit v1.2.3