This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 1/3] benchtests: fmod benchmark


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]