mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 02:33:36 +08:00
9298ecba15
This patch adds the ability to accept output arguments to functions being benchmarked, by nesting the argument type in <> in the args directive. It includes the sincos implementation as an example, where the function would have the following args directive: ## args: double:<double *>:<double *> This simply adds a definition for a static variable whose pointer gets passed into the function, so it's not yet possible to pass something more complicated like a pre-allocated string or array. That would be a good feature to add if a function needs it. The values in the input file will map only to the input arguments. So if I had a directive like this for a function foo: ## args: int:<int *>:int:<int *> and I have a value list like this: 1, 2 3, 4 5, 6 then the function calls generated would be: foo (1, &out1, 2, &out2); foo (3, &out1, 4, &out2); foo (5, &out1, 6, &out2); |
||
---|---|---|
.. | ||
abi-versions.awk | ||
abilist.awk | ||
begin-end-check.pl | ||
bench.pl | ||
check-c++-types.sh | ||
check-execstack.awk | ||
check-local-headers.sh | ||
check-localplt.awk | ||
check-textrel.awk | ||
config-uname.sh | ||
config.guess | ||
config.sub | ||
cpp | ||
cross-test-ssh.sh | ||
documented.sh | ||
firstversions.awk | ||
gen-as-const.awk | ||
gen-libc-abis | ||
gen-sorted.awk | ||
install-sh | ||
lib-names.awk | ||
list-sources.sh | ||
localplt.awk | ||
mkinstalldirs | ||
move-if-change | ||
output-format.sed | ||
rellns-sh | ||
rpm2dynsym.sh | ||
soversions.awk | ||
sysd-rules.awk | ||
test-installation.pl | ||
update-copyrights | ||
versions.awk |