diff options
author | Raphael Moreira Zinsly <rzinsly@linux.ibm.com> | 2020-12-03 10:41:02 -0300 |
---|---|---|
committer | Raphael Moreira Zinsly <rzinsly@linux.ibm.com> | 2021-03-16 12:19:09 -0300 |
commit | 6cf19111222800a9e98f30392b6649c42b315829 (patch) | |
tree | c0f829a8ee6e246c164a62add80c5a40de9fea28 | |
parent | a7d88506c260e7a0e4268803e76fc19e38ed041f (diff) | |
download | glibc-6cf19111222800a9e98f30392b6649c42b315829.tar.gz glibc-6cf19111222800a9e98f30392b6649c42b315829.tar.xz glibc-6cf19111222800a9e98f30392b6649c42b315829.zip |
benchtests: Add ilogb* tests
Add a benchtest to ilogb, ilogbf and ilogbf128 based on the logb* benchtests.
-rw-r--r-- | benchtests/Makefile | 4 | ||||
-rw-r--r-- | benchtests/ilogb-inputs | 11 | ||||
-rw-r--r-- | benchtests/ilogbf-inputs | 11 | ||||
-rw-r--r-- | benchtests/ilogbf128-inputs | 11 |
4 files changed, 35 insertions, 2 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index 12bd25a57c..0c99547074 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -25,10 +25,10 @@ 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 roundeven roundevenf expf exp2f logf \ log2f sincosf sinf cosf isnan isinf isfinite hypot logb logbf \ - exp10f + exp10f ilogb ilogbf ifneq (,$(filter yes,$(float128-fcts) $(float128-alias-fcts))) -bench-math += expf128 powf128 sinf128 +bench-math += expf128 powf128 sinf128 ilogbf128 endif bench-pthread := pthread_once thread_create pthread-locks diff --git a/benchtests/ilogb-inputs b/benchtests/ilogb-inputs new file mode 100644 index 0000000000..4b3b38bd99 --- /dev/null +++ b/benchtests/ilogb-inputs @@ -0,0 +1,11 @@ +## args: double +## ret: int +## includes: math.h + +## name: subnormal +0x0.0000000000001p-1022 +0x0.fffffffffffffp-1022 + +## name: normal +1.0 +1024.0 diff --git a/benchtests/ilogbf-inputs b/benchtests/ilogbf-inputs new file mode 100644 index 0000000000..ea391d3b85 --- /dev/null +++ b/benchtests/ilogbf-inputs @@ -0,0 +1,11 @@ +## args: float +## ret: int +## includes: math.h + +## name: subnormal +0x1p-149 +0x1.fffff8p-128 + +## name: normal +1.0 +1024.0 diff --git a/benchtests/ilogbf128-inputs b/benchtests/ilogbf128-inputs new file mode 100644 index 0000000000..bfbfc93714 --- /dev/null +++ b/benchtests/ilogbf128-inputs @@ -0,0 +1,11 @@ +## args: _Float128 +## ret: int +## includes: math.h + +## name: subnormal +6.47517511943802511092443895822764655e-4966f128 +0x1.fffffffffffffff8p-16383f128 + +## name: normal +1.0 +-0x8.2faf442f390a9211f5af128673fp+0L |