From 9e0e01b7f4375063f06e494113187d48614628e0 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 30 Nov 2021 22:25:37 +0800 Subject: +init --- .../ThirdParty/libfixmath/benchmarks/interface.h | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Client/ThirdParty/libfixmath/benchmarks/interface.h (limited to 'Client/ThirdParty/libfixmath/benchmarks/interface.h') diff --git a/Client/ThirdParty/libfixmath/benchmarks/interface.h b/Client/ThirdParty/libfixmath/benchmarks/interface.h new file mode 100644 index 0000000..cf6a3f9 --- /dev/null +++ b/Client/ThirdParty/libfixmath/benchmarks/interface.h @@ -0,0 +1,27 @@ +// This file defines the hardware or simulator interface that will be used to +// measure timings and report results. + +#include + +/* Tools for profiling */ + +typedef struct { + uint32_t min; + uint32_t max; + uint32_t sum; + uint32_t count; +} cyclecount_t; + +// Initialize +void interface_init(); + +// Reset timer/counter/something +void start_timing(); + +// Return the number of clock cycles passed since start_timing(); +uint16_t end_timing(); + +// Print a value to console, along with a descriptive label +void print_value(const char *label, int32_t value); + +void print(const char *label, cyclecount_t *count); -- cgit v1.1-26-g67d0