1
0
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:
Stefan Liebler
2019-12-11 15:09:22 +01:00
parent 62560ee840
commit 1ac9c1cf87
6 changed files with 37 additions and 0 deletions

View File

@ -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 */