about summary refs log tree commit diff
path: root/sysdeps/ieee754/float128/float128_private.h
diff options
context:
space:
mode:
authorXiaolin Tang <tangxiaolin@loongson.cn>2022-11-23 11:44:58 +0800
committercaiyinyu <caiyinyu@loongson.cn>2022-11-29 16:00:28 +0800
commita1981ecbfd4aec84dea26936d91c8ed9164f8b13 (patch)
treed78cf6c9ba6e1b931c8ad01c9844c9665651175c /sysdeps/ieee754/float128/float128_private.h
parente1697a540c49d5bd35e84b22fcd537c14f71a4e9 (diff)
downloadglibc-a1981ecbfd4aec84dea26936d91c8ed9164f8b13.tar.gz
glibc-a1981ecbfd4aec84dea26936d91c8ed9164f8b13.tar.xz
glibc-a1981ecbfd4aec84dea26936d91c8ed9164f8b13.zip
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 <xry111@xry111.site>
Diffstat (limited to 'sysdeps/ieee754/float128/float128_private.h')
-rw-r--r--sysdeps/ieee754/float128/float128_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h
index a452ced89a..3bb5fffa74 100644
--- a/sysdeps/ieee754/float128/float128_private.h
+++ b/sysdeps/ieee754/float128/float128_private.h
@@ -163,6 +163,8 @@
 #define USE_FMAL_BUILTIN USE_FMAF128_BUILTIN
 #undef USE_LRINTL_BUILTIN
 #define USE_LRINTL_BUILTIN USE_LRINTF128_BUILTIN
+#undef USE_LLRINTL_BUILTIN
+#define USE_LLRINTL_BUILTIN USE_LLRINTF128_BUILTIN
 
 /* IEEE function renames.  */
 #define __ieee754_acoshl __ieee754_acoshf128