Tools: updated CPUInfo

This commit is contained in:
Andrew Tridgell 2019-02-25 07:58:27 +11:00
parent 8f5a22685a
commit ec0e6137e3

View File

@ -9,6 +9,7 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include <AP_Common/AP_Common.h> #include <AP_Common/AP_Common.h>
#include <AP_Math/AP_Math.h>
void setup(); void setup();
void loop(); void loop();
@ -122,7 +123,10 @@ static void show_timings(void)
TIMEIT("asin()", v_out = asin(v_f * 0.2), 20); TIMEIT("asin()", v_out = asin(v_f * 0.2), 20);
TIMEIT("atan2()", v_out = atan2(v_f * 0.2, v_f * 0.3), 20); TIMEIT("atan2()", v_out = atan2(v_f * 0.2, v_f * 0.3), 20);
TIMEIT("sqrt()",v_out = sqrt(v_f), 20); TIMEIT("sqrt()",v_out = sqrt(v_f), 20);
TIMEIT("sq()",v_out = sq(v_f), 20);
TIMEIT("powf(v,2)",v_out = powf(v_f, 2), 20);
TIMEIT("powf(v,3.1)",v_out = powf(v_f, 3.1), 20);
TIMEIT("iadd8", v_out_8 += v_8, 100); TIMEIT("iadd8", v_out_8 += v_8, 100);
TIMEIT("isub8", v_out_8 -= v_8, 100); TIMEIT("isub8", v_out_8 -= v_8, 100);
TIMEIT("imul8", v_out_8 *= v_8, 100); TIMEIT("imul8", v_out_8 *= v_8, 100);