This website requires JavaScript.
Explore
Help
Sign In
mirror
/
glibc
Watch
2
Star
0
Fork
0
You've already forked glibc
mirror of
git://sourceware.org/git/glibc.git
synced
2024-11-27 03:41:23 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
release/2.32/master
glibc
/
benchtests
/
rint-inputs
8 lines
101 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Add more directives to benchmark input files This patch adds some more directives to the benchmark inputs file, moving functionality from the Makefile and making the code generation script a bit cleaner. The function argument and return types that were earlier added as variables in the makefile and passed to the script via command line arguments are now the 'args' and 'ret' directive respectively. 'args' should be a colon separated list of argument types (skipped if the function doesn't accept any arguments) and 'ret' should be the return type. Additionally, an 'includes' directive may have a comma separated list of headers to include in the source. For example, the pow input file now looks like this: 42.0, 42.0 1.0000000000000020, 1.5 I did this to unclutter the benchtests Makefile a bit and eventually eliminate dependency of the tests on the Makefile and have tests depend on their respective include files only.
2013-10-07 14:21:24 +08:00
## args: double
## ret: double
## includes: math.h
PowerPC: remove branch prediction from rint implementation The branch prediction hints is actually hurts performance in this case. The assembly implementation make two assumptions: 1. 'fabs (x) < 2^52' is unlikely and 2. 'x > 0.0' is unlike (if 1. is true). Since it a general floating point function, expected input is not bounded and then it is better to let the hardware handle the branches.
2013-03-30 07:15:28 +08:00
78.5
-78.5
4503599627370497.0
-4503599627370497.0
Reference in New Issue
Copy Permalink