diff options
Diffstat (limited to 'libc/benchtests/Makefile')
-rw-r--r-- | libc/benchtests/Makefile | 60 |
1 files changed, 39 insertions, 21 deletions
diff --git a/libc/benchtests/Makefile b/libc/benchtests/Makefile index 861839013..67728537a 100644 --- a/libc/benchtests/Makefile +++ b/libc/benchtests/Makefile @@ -17,34 +17,52 @@ # Makefile for benchmark tests. The only useful target here is `bench`. +# Add benchmark functions in alphabetical order. -# Adding a new function `foo`: -# --------------------------- +subdir := benchtests +bench := acos acosh asin asinh atan atanh cos cosh exp log modf pow rint sin \ + sinh tan tanh -# - Append the function name to the bench variable +acos-ARGLIST = double +acos-RET = double +LDFLAGS-bench-acos = -lm -# - Define foo-ARGLIST as a colon separated list of types of the input -# arguments. Use `void` if function does not take any inputs. Put in quotes -# if the input argument is a pointer, e.g.: +acosh-ARGLIST = double +acosh-RET = double +LDFLAGS-bench-acosh = -lm -# malloc-ARGLIST: "void *" +asin-ARGLIST = double +asin-RET = double +LDFLAGS-bench-asin = -lm -# - Define foo-RET as the type the function returns. Skip if the function -# returns void. One could even skip foo-ARGLIST if the function does not -# take any inputs AND the function returns void. +asinh-ARGLIST = double +asinh-RET = double +LDFLAGS-bench-asinh = -lm +atan-ARGLIST = double +atan-RET = double +LDFLAGS-bench-atan = -lm -# - Make a file called `foo-inputs` with one input value per line, an input -# being a comma separated list of arguments to be passed into the function. -# See pow-inputs for an example. +atanh-ARGLIST = double +atanh-RET = double +LDFLAGS-bench-atanh = -lm -subdir := benchtests -bench := exp pow rint sin cos tan atan modf +cos-ARGLIST = double +cos-RET = double +LDFLAGS-bench-cos = -lm + +cosh-ARGLIST = double +cosh-RET = double +LDFLAGS-bench-cosh = -lm exp-ARGLIST = double exp-RET = double LDFLAGS-bench-exp = -lm +log-ARGLIST = double +log-RET = double +LDFLAGS-bench-log = -lm + pow-ARGLIST = double:double pow-RET = double LDFLAGS-bench-pow = -lm @@ -57,17 +75,17 @@ sin-ARGLIST = double sin-RET = double LDFLAGS-bench-sin = -lm -cos-ARGLIST = double -cos-RET = double -LDFLAGS-bench-cos = -lm +sinh-ARGLIST = double +sinh-RET = double +LDFLAGS-bench-sinh = -lm tan-ARGLIST = double tan-RET = double LDFLAGS-bench-tan = -lm -atan-ARGLIST = double -atan-RET = double -LDFLAGS-bench-atan = -lm +tanh-ARGLIST = double +tanh-RET = double +LDFLAGS-bench-tanh = -lm |