mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-05 18:28:46 +01:00
use const float instead of define
Signed-off-by: Slice <sergey.slice@gmail.com>
This commit is contained in:
parent
b871f2c17a
commit
1a23556796
@ -8,12 +8,12 @@
|
||||
#ifndef FloatLib_h
|
||||
#define FloatLib_h
|
||||
|
||||
#define PI (3.1415926536f)
|
||||
#define PI2 (6.283185307179586f)
|
||||
#define PI5 (1.570796326794897f)
|
||||
#define PI4 (0.78539816339745f)
|
||||
#define FLT_MAX (1.0e38f)
|
||||
#define FLT_MIN (1.0e-37f)
|
||||
const float PI = 3.1415926536f;
|
||||
const float PI2 = 6.283185307179586f;
|
||||
const float PI5 = 1.570796326794897f;
|
||||
const float PI4 = 0.78539816339745f;
|
||||
const float FLT_MAX = 1.0e38f;
|
||||
const float FLT_MIN = 1.0e-37f;
|
||||
|
||||
float SqrtF(float X);
|
||||
float PowF(float X, INTN N);
|
||||
|
@ -520,7 +520,7 @@ static void nsvg__squareCap(NSVGrasterizer* r, NSVGpoint* left, NSVGpoint* right
|
||||
}
|
||||
|
||||
#ifndef NSVG_PI
|
||||
#define NSVG_PI (3.14159265358979323846264338327f)
|
||||
const float NSVG_PI = 3.141592653589793f;
|
||||
#endif
|
||||
|
||||
static void nsvg__roundCap(NSVGrasterizer* r, NSVGpoint* left, NSVGpoint* right, NSVGpoint* p, float dx, float dy, float lineWidth, int ncap, int connect)
|
||||
|
Loading…
Reference in New Issue
Block a user