PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Tests for the microbench math library. More...
#include <unit_test.h>
#include <time.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <drivers/drv_hrt.h>
#include <perf/perf_counter.h>
#include <px4_platform_common/px4_config.h>
#include <px4_platform_common/micro_hal.h>
Go to the source code of this file.
Classes | |
class | MicroBenchMath::MicroBenchMath |
Namespaces | |
MicroBenchMath | |
Macros | |
#define | PERF(name, op, count) |
Functions | |
void | MicroBenchMath::lock () |
void | MicroBenchMath::unlock () |
template<typename T > | |
T | MicroBenchMath::random (T min, T max) |
MicroBenchMath::ut_declare_test_c (test_microbench_math, MicroBenchMath) bool MicroBenchMath | |
Tests for the microbench math library.
Definition in file test_microbench_math.cpp.
#define PERF | ( | name, | |
op, | |||
count | |||
) |
Definition at line 73 of file test_microbench_math.cpp.
Referenced by MicroBenchMath::MicroBenchMath::time_16bit_integers(), MicroBenchMath::MicroBenchMath::time_32bit_integers(), MicroBenchMath::MicroBenchMath::time_64bit_integers(), MicroBenchMath::MicroBenchMath::time_8bit_integers(), MicroBenchMath::MicroBenchMath::time_double_precision_float(), MicroBenchMath::MicroBenchMath::time_double_precision_float_trig(), MicroBenchMath::MicroBenchMath::time_single_precision_float_trig(), and MicroBenchMath::ut_declare_test_c().