1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

Use GCC builtins for floor functions if desired.

This patch is using the corresponding GCC builtin for floorf, floor,
floorl and floorf128 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:20 +01:00
parent a2a9b00429
commit 6c1b6a5e8c
6 changed files with 37 additions and 0 deletions

View File

@ -31,4 +31,9 @@
#define USE_RINTL_BUILTIN 0
#define USE_RINTF128_BUILTIN 0
#define USE_FLOOR_BUILTIN 0
#define USE_FLOORF_BUILTIN 0
#define USE_FLOORL_BUILTIN 0
#define USE_FLOORF128_BUILTIN 0
#endif /* math-use-builtins.h */