mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
CPUInfo: test NaN and Infinity printing
This commit is contained in:
parent
0bbddbb877
commit
3f8fb48479
@ -37,6 +37,10 @@ static void show_sizes(void)
|
||||
hal.console->printf("long long : %d\n", sizeof(long long));
|
||||
hal.console->printf("bool : %d\n", sizeof(bool));
|
||||
hal.console->printf("void* : %d\n", sizeof(void *));
|
||||
|
||||
hal.console->printf("printing NaN: %f\n", sqrt(-1.0f));
|
||||
hal.console->printf("printing +Inf: %f\n", 1.0f/0.0f);
|
||||
hal.console->printf("printing -Inf: %f\n", -1.0f/0.0f);
|
||||
}
|
||||
|
||||
#define TENTIMES(x) do { x; x; x; x; x; x; x; x; x; x; } while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user