diff mbox

[1/3] benchtests: fmod benchmark

Message ID 54627989.1090109@linux.vnet.ibm.com
State New
Headers show

Commit Message

Adhemerval Zanella Nov. 11, 2014, 9:03 p.m. UTC
This patch add a fmod benchmark with finite-only inputs.

Tested on powerpc64 and powerpc32.

--

	* benchtests/Makefile [bench-math]: Add fmod benchmark.
	* benchtests/fmod-inputs: New file: fmod input file.

---

Comments

Siddhesh Poyarekar Nov. 12, 2014, 2:13 a.m. UTC | #1
On 12 November 2014 02:33, Adhemerval Zanella
<azanella@linux.vnet.ibm.com> wrote:
> This patch add a fmod benchmark with finite-only inputs.
>
> Tested on powerpc64 and powerpc32.
>
> --
>
>         * benchtests/Makefile [bench-math]: Add fmod benchmark.
>         * benchtests/fmod-inputs: New file: fmod input file.

Looks OK.

Thanks,
Siddhesh
diff mbox

Patch

diff --git a/benchtests/Makefile b/benchtests/Makefile
index 78fd48f..e030fd0 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 ffs ffsll \
-	      log log2 modf pow rint sin sincos sinh sqrt tan tanh
+	      fmod log log2 modf pow rint sin sincos sinh sqrt tan tanh
 
 bench-pthread := pthread_once
 
diff --git a/benchtests/fmod-inputs b/benchtests/fmod-inputs
new file mode 100644
index 0000000..36b264b
--- /dev/null
+++ b/benchtests/fmod-inputs
@@ -0,0 +1,5 @@ 
+## includes: math.h
+## args: double:double
+0.0, 3.0
+6.5, 2.25
+0x0.fffffep-126L, 0x1p-149