diff options
author | Joseph Myers <joseph@codesourcery.com> | 2017-09-19 12:59:01 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2017-09-19 12:59:01 +0000 |
commit | eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6 (patch) | |
tree | ccaa8a1599d1601cbdc7c3c8f6a35971cba1e86b /benchtests/Makefile | |
parent | powerpc: Avoid misaligned stores in memset (diff) | |
download | glibc-eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6.tar.gz glibc-eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6.tar.bz2 glibc-eb375def3ddd2a1738ed6bc5ace98753f0f7e5e6.zip |
Add benchtests for trunc and truncf.
This patch adds benchtests for the trunc and truncf functions. The
inputs listed are fairly arbitrary; I do not assert they are
representative of any particular application.
* benchtests/Makefile (bench-math): Add trunc and truncf.
(CFLAGS-bench-trunc.c): New variable.
(CFLAGS-bench-truncf.c): Likewise.
* benchtests/trunc-inputs: New file.
* benchtests/truncf-inputs: Likewise.
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r-- | benchtests/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index a0c3470398..886ec58901 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -23,7 +23,7 @@ subdir := benchtests include ../Makeconfig bench-math := acos acosh asin asinh atan atanh cos cosh exp exp2 log log2 \ modf pow rint sin sincos sinh sqrt tan tanh fmin fmax fminf \ - fmaxf powf + fmaxf powf trunc truncf bench-pthread := pthread_once thread_create @@ -76,6 +76,8 @@ CFLAGS-bench-fmin.c += -fno-builtin CFLAGS-bench-fminf.c += -fno-builtin CFLAGS-bench-fmax.c += -fno-builtin CFLAGS-bench-fmaxf.c += -fno-builtin +CFLAGS-bench-trunc.c += -fno-builtin +CFLAGS-bench-truncf.c += -fno-builtin bench-malloc := malloc-thread |