trivial code style cleanup round 2

This commit is contained in:
Daniel Agar
2015-03-27 23:38:58 -04:00
parent 5cc1a5dfda
commit 8aae66b893
56 changed files with 132 additions and 104 deletions
+3 -2
View File
@@ -44,9 +44,10 @@
#include "Limits.hpp"
namespace math {
namespace math
{
#ifndef CONFIG_ARCH_ARM
#ifndef CONFIG_ARCH_ARM
#define M_PI_F 3.14159265358979323846f
#endif
+2 -1
View File
@@ -42,7 +42,8 @@
#include <platforms/px4_defines.h>
#include <stdint.h>
namespace math {
namespace math
{
float __EXPORT min(float val1, float val2);
+3 -3
View File
@@ -51,7 +51,7 @@ bool __EXPORT equal(float a, float b, float epsilon)
printf("not equal ->\n\ta: %12.8f\n\tb: %12.8f\n", double(a), double(b));
return false;
} else return true;
} else { return true; }
}
void __EXPORT float2SigExp(
@@ -84,10 +84,10 @@ void __EXPORT float2SigExp(
// cheap power since it is integer
if (exp > 0) {
for (int i = 0; i < abs(exp); i++) sig /= 10;
for (int i = 0; i < abs(exp); i++) { sig /= 10; }
} else {
for (int i = 0; i < abs(exp); i++) sig *= 10;
for (int i = 0; i < abs(exp); i++) { sig *= 10; }
}
}