mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
a357259bf8
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.
21 lines
417 B
Plaintext
21 lines
417 B
Plaintext
## includes: math.h
|
|
## args: double
|
|
## ret: double
|
|
0.9
|
|
2.3
|
|
3.7
|
|
3.9
|
|
4.0
|
|
4.7
|
|
5.9
|
|
# sin slowest path at 768 bits
|
|
# Implemented in sysdeps/ieee754/dbl-64/sincos32.c
|
|
## name: 768bits
|
|
0.93340582292648832662962377071381
|
|
2.3328432680770916363144351635128
|
|
3.7439477503636453548097051680088
|
|
3.9225160069792437411706487182528
|
|
4.0711651639931289992091478779912
|
|
4.7858438478542097982426639646292
|
|
5.9840767662578002727968851104379
|