Skip to content

Commit

Permalink
benchtests: Add logb{f} benchmark
Browse files Browse the repository at this point in the history
	* benchtests/Makefile (bench-math): Add logb.
	* benchtests/logb-inputs: New file.
	* benchtests/logbf-inputs: New file.

Reviewed-by: Gabriel F. T. Gomes <[email protected]>
  • Loading branch information
zatrazz committed Jul 8, 2019
1 parent 931c616 commit 0cccd37
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
2019-07-08 Adhemerval Zanella <[email protected]>

* 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 ...
Expand Down
2 changes: 1 addition & 1 deletion benchtests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions benchtests/logb-inputs
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions benchtests/logbf-inputs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## args: double
## ret: double
## includes: math.h

## name: subnormal
0x1p-149
0x1.fffff8p-128

## name: normal
1.0
1024.0

0 comments on commit 0cccd37

Please sign in to comment.