diff options
author | chai <chaifix@163.com> | 2021-11-30 22:25:37 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-30 22:25:37 +0800 |
commit | 9e0e01b7f4375063f06e494113187d48614628e0 (patch) | |
tree | 21a4901612ad92c121f4c887a33b1bbbe87c6b00 /Client/ThirdParty/libfixmath/benchmarks/interface.c |
+init
Diffstat (limited to 'Client/ThirdParty/libfixmath/benchmarks/interface.c')
-rw-r--r-- | Client/ThirdParty/libfixmath/benchmarks/interface.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Client/ThirdParty/libfixmath/benchmarks/interface.c b/Client/ThirdParty/libfixmath/benchmarks/interface.c new file mode 100644 index 0000000..7f37648 --- /dev/null +++ b/Client/ThirdParty/libfixmath/benchmarks/interface.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include "interface.h" + +void print_value(const char *label, int32_t value) +{ + printf("%-20s %6ld\n", label, value); +} + +void print(const char *label, cyclecount_t *count) +{ + printf("%-20s %6ld %6ld %6ld\n",label,count->min, count->sum / count->count, count->max); +} |