diff options
author | John Reck <jreck@google.com> | 2014-07-24 13:38:28 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2014-07-24 14:28:08 -0700 |
commit | 1aa5d2d7068147ff781cfe911a93f01593a68c79 (patch) | |
tree | 63d8676a5a062deb3a95caee0c5a39ce19471df2 /libs/hwui/utils | |
parent | 71d34ec5bed6fe723cf5f85c1ffb64e0d9380967 (diff) | |
download | frameworks_base-1aa5d2d7068147ff781cfe911a93f01593a68c79.zip frameworks_base-1aa5d2d7068147ff781cfe911a93f01593a68c79.tar.gz frameworks_base-1aa5d2d7068147ff781cfe911a93f01593a68c79.tar.bz2 |
Fix ALL compile warnings
All warnings/errors fixed for GCC & Clang
Change-Id: I2ece3a136a5ae97a9acc3069537ed986238b5fd3
Diffstat (limited to 'libs/hwui/utils')
-rw-r--r-- | libs/hwui/utils/MathUtils.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hwui/utils/MathUtils.h b/libs/hwui/utils/MathUtils.h index 65f1663..2dfe9c6 100644 --- a/libs/hwui/utils/MathUtils.h +++ b/libs/hwui/utils/MathUtils.h @@ -19,19 +19,19 @@ namespace android { namespace uirenderer { +#define NON_ZERO_EPSILON (0.001f) + class MathUtils { -private: - static const float gNonZeroEpsilon = 0.001f; public: /** * Check for floats that are close enough to zero. */ inline static bool isZero(float value) { - return (value >= -gNonZeroEpsilon) && (value <= gNonZeroEpsilon); + return (value >= -NON_ZERO_EPSILON) && (value <= NON_ZERO_EPSILON); } inline static bool isPositive(float value) { - return value >= gNonZeroEpsilon; + return value >= NON_ZERO_EPSILON; } inline static bool areEqual(float valueA, float valueB) { |