Tools: updated CPUInfo
This commit is contained in:
parent
8f5a22685a
commit
ec0e6137e3
@ -9,6 +9,7 @@
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Common/AP_Common.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
||||
void setup();
|
||||
void loop();
|
||||
@ -122,6 +123,9 @@ static void show_timings(void)
|
||||
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("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("isub8", v_out_8 -= v_8, 100);
|
||||
|
Loading…
Reference in New Issue
Block a user