mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 20:03:35 +08:00
Update test_mathlib.cpp
spelling mistakes
This commit is contained in:
@@ -100,7 +100,7 @@ int test_mathlib(int argc, char *argv[])
|
|||||||
TEST_OP("Vector<3> length squared", v1.length_squared());
|
TEST_OP("Vector<3> length squared", v1.length_squared());
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
// Need pragma here intead of moving variable out of TEST_OP and just reference because
|
// Need pragma here instead of moving variable out of TEST_OP and just reference because
|
||||||
// TEST_OP measures performance of vector operations.
|
// TEST_OP measures performance of vector operations.
|
||||||
TEST_OP("Vector<3> element read", volatile float a = v1(0));
|
TEST_OP("Vector<3> element read", volatile float a = v1(0));
|
||||||
TEST_OP("Vector<3> element read direct", volatile float a = v1.data[0]);
|
TEST_OP("Vector<3> element read direct", volatile float a = v1.data[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user