diff options
author | Xiaolin Tang <tangxiaolin@loongson.cn> | 2022-11-23 11:45:00 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2022-11-29 16:00:28 +0800 |
commit | 2e2485ce05bce85bf092ba0752854afa14b92dad (patch) | |
tree | 4138377bc399d8368b1e838941f12889ff4c8495 /sysdeps/ieee754/float128 | |
parent | f711e4ef53990b6c76f2dfdbcb9f791c541cdac3 (diff) | |
download | glibc-2e2485ce05bce85bf092ba0752854afa14b92dad.tar.gz glibc-2e2485ce05bce85bf092ba0752854afa14b92dad.tar.xz glibc-2e2485ce05bce85bf092ba0752854afa14b92dad.zip |
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 <xry111@xry111.site>
Diffstat (limited to 'sysdeps/ieee754/float128')
-rw-r--r-- | sysdeps/ieee754/float128/float128_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h index 3bb5fffa74..78107b1525 100644 --- a/sysdeps/ieee754/float128/float128_private.h +++ b/sysdeps/ieee754/float128/float128_private.h @@ -165,6 +165,8 @@ #define USE_LRINTL_BUILTIN USE_LRINTF128_BUILTIN #undef USE_LLRINTL_BUILTIN #define USE_LLRINTL_BUILTIN USE_LLRINTF128_BUILTIN +#undef USE_LOGBL_BUILTIN +#define USE_LOGBL_BUILTIN USE_LOGBF128_BUILTIN /* IEEE function renames. */ #define __ieee754_acoshl __ieee754_acoshf128 |