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

Use GCC builtins for rint functions if desired.

This patch is using the corresponding GCC builtin for rintf, rint,
rintl and rintf128 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 ae3577f607
commit a2a9b00429
6 changed files with 52 additions and 18 deletions

View File

@ -26,4 +26,9 @@
#define USE_NEARBYINTL_BUILTIN 0
#define USE_NEARBYINTF128_BUILTIN 0
#define USE_RINT_BUILTIN 0
#define USE_RINTF_BUILTIN 0
#define USE_RINTL_BUILTIN 0
#define USE_RINTF128_BUILTIN 0
#endif /* math-use-builtins.h */