mirror of https://github.com/ArduPilot/ardupilot
switch optimisation to O2
on average makes for faster and smaller code than O3
This commit is contained in:
parent
ee25d05f3c
commit
a452f8e4ed
|
@ -32,7 +32,7 @@ extern const AP_HAL::HAL &hal;
|
|||
// we build this file with optimisation to lower the interrupt
|
||||
// latency. This helps reduce the chance of losing an RC input byte
|
||||
// due to missing a UART interrupt
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
static AP_IOMCU_FW iomcu;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
#include "AP_Math.h"
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* N dimensional matrix operations
|
||||
*/
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
#include "matrixN.h"
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "AP_Math.h"
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
/*
|
||||
* The point in polygon algorithm is based on:
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
#include "AP_Math.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
#include "AP_Math.h"
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
|
||||
#include "AP_Math.h"
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
|
||||
#pragma GCC optimize("O0")
|
||||
#else
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("O2")
|
||||
#endif
|
||||
|
||||
#include "SoloGimbalEKF.h"
|
||||
|
|
Loading…
Reference in New Issue