This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 1/3] benchtests: fmod benchmark
- From: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Tue, 11 Nov 2014 19:03:05 -0200
- Subject: [PATCH 1/3] benchtests: fmod benchmark
- Authentication-results: sourceware.org; auth=none
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.
---
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