Browse Source

AP_Math: change optimisation from -O3 to -O2

master
Andrew Tridgell 5 years ago
parent
commit
13a2367278
  1. 2
      libraries/AP_Math/matrix3.cpp
  2. 2
      libraries/AP_Math/matrixN.cpp
  3. 2
      libraries/AP_Math/matrix_alg.cpp
  4. 2
      libraries/AP_Math/polygon.cpp
  5. 2
      libraries/AP_Math/quaternion.cpp
  6. 2
      libraries/AP_Math/vector2.cpp
  7. 2
      libraries/AP_Math/vector3.cpp

2
libraries/AP_Math/matrix3.cpp

@ -16,7 +16,7 @@ @@ -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
libraries/AP_Math/matrixN.cpp

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
* N dimensional matrix operations
*/
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
#include "matrixN.h"

2
libraries/AP_Math/matrix_alg.cpp

@ -15,7 +15,7 @@ @@ -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>

2
libraries/AP_Math/polygon.cpp

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
#include "AP_Math.h"
#pragma GCC optimize("O3")
#pragma GCC optimize("O2")
/*
* The point in polygon algorithm is based on:

2
libraries/AP_Math/quaternion.cpp

@ -16,7 +16,7 @@ @@ -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
libraries/AP_Math/vector2.cpp

@ -16,7 +16,7 @@ @@ -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
libraries/AP_Math/vector3.cpp

@ -16,7 +16,7 @@ @@ -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"

Loading…
Cancel
Save