s390x: add single-instruction math functions
authorRich Felker <dalias@aerifal.cx>
Fri, 23 Jun 2017 19:28:10 +0000 (15:28 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 23 Jun 2017 19:28:10 +0000 (15:28 -0400)
commitce385fcfb2db74b109067083db4a26ca810eaa14
treef759439c9cf1c25ea52f1488d6441dcb30b1b28d
parente6def544358afd5648a428d2e02c147a1f901048
s390x: add single-instruction math functions

these were introduced in z196 and not available in the baseline (z900)
ISA level. use __HTM__ as an alternate indicator for ISA level, since
gcc did not define __ARCH__ until 7.x.

patch by David Edelsohn.
24 files changed:
src/math/s390x/ceil.c [new file with mode: 0644]
src/math/s390x/ceilf.c [new file with mode: 0644]
src/math/s390x/ceill.c [new file with mode: 0644]
src/math/s390x/fabs.c [new file with mode: 0644]
src/math/s390x/fabsf.c [new file with mode: 0644]
src/math/s390x/fabsl.c [new file with mode: 0644]
src/math/s390x/floor.c [new file with mode: 0644]
src/math/s390x/floorf.c [new file with mode: 0644]
src/math/s390x/floorl.c [new file with mode: 0644]
src/math/s390x/nearbyint.c [new file with mode: 0644]
src/math/s390x/nearbyintf.c [new file with mode: 0644]
src/math/s390x/nearbyintl.c [new file with mode: 0644]
src/math/s390x/rint.c [new file with mode: 0644]
src/math/s390x/rintf.c [new file with mode: 0644]
src/math/s390x/rintl.c [new file with mode: 0644]
src/math/s390x/round.c [new file with mode: 0644]
src/math/s390x/roundf.c [new file with mode: 0644]
src/math/s390x/roundl.c [new file with mode: 0644]
src/math/s390x/sqrt.c [new file with mode: 0644]
src/math/s390x/sqrtf.c [new file with mode: 0644]
src/math/s390x/sqrtl.c [new file with mode: 0644]
src/math/s390x/trunc.c [new file with mode: 0644]
src/math/s390x/truncf.c [new file with mode: 0644]
src/math/s390x/truncl.c [new file with mode: 0644]