]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
benchtests: Add logb{f} benchmark
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 14 Mar 2019 11:55:04 +0000 (11:55 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 8 Jul 2019 20:22:22 +0000 (17:22 -0300)
* 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>
ChangeLog
benchtests/Makefile
benchtests/logb-inputs [new file with mode: 0644]
benchtests/logbf-inputs [new file with mode: 0644]

index a9aefa6e2f78e67f9c3fc753f462f95e1b14e857..828f8321347eec417c139c888979e2daca96a360 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2019-07-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
+       * benchtests/Makefile (bench-math): Add logb.
+       * benchtests/logb-inputs: New file.
+       * benchtests/logbf-inputs: New file.
+
        * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
        * sysdeps/powerpc/fpu/s_modf.c: ... here.  Add ISA 2.07 optimization.
        * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
index 2d49113d7ee2acbb72b06f58d93fb367ff0c8ef3..697e29fbbea225709388271885f9140cc1266974 100644 (file)
@@ -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 (file)
index 0000000..ab3b161
--- /dev/null
@@ -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 (file)
index 0000000..c97fa17
--- /dev/null
@@ -0,0 +1,11 @@
+## args: double
+## ret: double
+## includes: math.h
+
+## name: subnormal
+0x1p-149
+0x1.fffff8p-128
+
+## name: normal
+1.0
+1024.0