mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Use GCC builtins for trunc functions if desired.
This patch is using the corresponding GCC builtin for truncf, trunc, truncl and truncf128 if the USE_FUNCTION_BUILTIN macros are defined to one in math-use-builtins.h. This is the case for s390 if build with at least --march=z196 --mzarch. Otherwise the generic implementation is used. The code of the generic implementation is not changed. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -41,4 +41,9 @@
|
||||
#define USE_CEILL_BUILTIN 0
|
||||
#define USE_CEILF128_BUILTIN 0
|
||||
|
||||
#define USE_TRUNC_BUILTIN 0
|
||||
#define USE_TRUNCF_BUILTIN 0
|
||||
#define USE_TRUNCL_BUILTIN 0
|
||||
#define USE_TRUNCF128_BUILTIN 0
|
||||
|
||||
#endif /* math-use-builtins.h */
|
||||
|
Reference in New Issue
Block a user