about summary refs log tree commit diff
path: root/sysdeps/s390/fpu/math-use-builtins-trunc.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-06-04 14:32:17 +0000
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-06-22 11:09:45 -0300
commite80501a5c971c13f9bd72fe7b34a83aa36ec6541 (patch)
tree1fe929a28af22a2b07831094a1d8ad51adaec4e9 /sysdeps/s390/fpu/math-use-builtins-trunc.h
parentc013d5d3aae97c09e10c7b73a72af6086e6e1b98 (diff)
downloadglibc-e80501a5c971c13f9bd72fe7b34a83aa36ec6541.tar.gz
glibc-e80501a5c971c13f9bd72fe7b34a83aa36ec6541.tar.xz
glibc-e80501a5c971c13f9bd72fe7b34a83aa36ec6541.zip
math: Decompose math-use-builtins.h
Each symbol definitions are moved on a separated file and it
cover all symbol type definitions (float, double, long double,
and float128).

It allows to set support for architectures without the boiler
place of copying default values.

Checked with a build on the affected ABIs.
Diffstat (limited to 'sysdeps/s390/fpu/math-use-builtins-trunc.h')
-rw-r--r--sysdeps/s390/fpu/math-use-builtins-trunc.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysdeps/s390/fpu/math-use-builtins-trunc.h b/sysdeps/s390/fpu/math-use-builtins-trunc.h
new file mode 100644
index 0000000000..9b5b02de41
--- /dev/null
+++ b/sysdeps/s390/fpu/math-use-builtins-trunc.h
@@ -0,0 +1,15 @@
+#ifdef HAVE_S390_MIN_Z196_ZARCH_ASM_SUPPORT
+# define USE_TRUNC_BUILTIN 1
+# define USE_TRUNCF_BUILTIN 1
+# define USE_TRUNCL_BUILTIN 1
+# if __GNUC_PREREQ (8, 0)
+#  define USE_TRUNCF128_BUILTIN 1
+# else
+#  define USE_TRUNCF128_BUILTIN 0
+# endif
+#else
+# define USE_TRUNC_BUILTIN 0
+# define USE_TRUNCF_BUILTIN 0
+# define USE_TRUNCL_BUILTIN 0
+# define USE_TRUNCF128_BUILTIN 0
+#endif