diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-03-14 11:55:04 +0000 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-07-08 17:22:22 -0300 |
commit | 0cccd37f70ba629a32773d6f253cb69a893fa652 (patch) | |
tree | 01ff045849f5e2e302aec6255de0a134d74003fa /benchtests | |
parent | powerpc: Refactor modf{f} (diff) | |
download | glibc-0cccd37f70ba629a32773d6f253cb69a893fa652.tar.gz glibc-0cccd37f70ba629a32773d6f253cb69a893fa652.tar.bz2 glibc-0cccd37f70ba629a32773d6f253cb69a893fa652.zip |
benchtests: Add logb{f} benchmark
* benchtests/Makefile (bench-math): Add logb.
* benchtests/logb-inputs: New file.
* benchtests/logbf-inputs: New file.
Reviewed-by: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Diffstat (limited to 'benchtests')
-rw-r--r-- | benchtests/Makefile | 2 | ||||
-rw-r--r-- | benchtests/logb-inputs | 11 | ||||
-rw-r--r-- | benchtests/logbf-inputs | 11 |
3 files changed, 23 insertions, 1 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index 2d49113d7e..697e29fbbe 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -24,7 +24,7 @@ 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 trunc truncf expf exp2f logf log2f sincosf sinf \ - cosf isnan isinf isfinite hypot + cosf isnan isinf isfinite hypot logb logbf bench-pthread := pthread_once thread_create diff --git a/benchtests/logb-inputs b/benchtests/logb-inputs new file mode 100644 index 0000000000..ab3b161696 --- /dev/null +++ b/benchtests/logb-inputs @@ -0,0 +1,11 @@ +## args: double +## ret: double +## includes: math.h + +## name: subnormal +0x0.0000000000001p-1022 +0x0.fffffffffffffp-1022 + +## name: normal +1.0 +1024.0 diff --git a/benchtests/logbf-inputs b/benchtests/logbf-inputs new file mode 100644 index 0000000000..c97fa17842 --- /dev/null +++ b/benchtests/logbf-inputs @@ -0,0 +1,11 @@ +## args: double +## ret: double +## includes: math.h + +## name: subnormal +0x1p-149 +0x1.fffff8p-128 + +## name: normal +1.0 +1024.0 |