diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-03-27 14:10:13 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-06-12 11:46:30 -0300 |
commit | 2731a326b10ba6d1646043cf28290584238b7ce4 (patch) | |
tree | 24dc0352077ff79918d620ef779fa47b88f9811b /benchtests/isfinite-inputs | |
parent | e41d66e41ae0626156b3eace8e15aecff3044695 (diff) | |
download | glibc-2731a326b10ba6d1646043cf28290584238b7ce4.tar.gz glibc-2731a326b10ba6d1646043cf28290584238b7ce4.tar.xz glibc-2731a326b10ba6d1646043cf28290584238b7ce4.zip |
benchtests: Add isnan/isinf/isfinite benchmark
* benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite. (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c, CFLAGS-bench-isfinite.c): New rule. * benchtests/isnan-input: New file. * benchtests/isinf-input: New file. * benchtests/isfinite-input: New file. Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Diffstat (limited to 'benchtests/isfinite-inputs')
-rw-r--r-- | benchtests/isfinite-inputs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/benchtests/isfinite-inputs b/benchtests/isfinite-inputs new file mode 100644 index 0000000000..35a887c9df --- /dev/null +++ b/benchtests/isfinite-inputs @@ -0,0 +1,21 @@ +## includes: math.h +## args: double +## ret: int +0.9 +2.3 +3.7 +3.9 +4.0 +4.7 +5.9 +0x1.000000cf4a2a1p0 +0x1.0000010b239a8p0 +0x1.00000162a932ap0 +0x1.000002d452a11p0 +0x1.000005bc7d86cp0 +## name: INF +__builtin_inf () +-__builtin_inf () +## name: NAN +__builtin_nan ("") +__builtin_nans ("") |