Align the code of c_math.c
This commit is contained in:
parent
bb244d47ab
commit
cca0de9b39
|
@ -40,7 +40,6 @@
|
||||||
#define ICACHE_STORE_TYPEDEF_ATTR __attribute__((aligned(4),packed))
|
#define ICACHE_STORE_TYPEDEF_ATTR __attribute__((aligned(4),packed))
|
||||||
#define ICACHE_STORE_ATTR __attribute__((aligned(4)))
|
#define ICACHE_STORE_ATTR __attribute__((aligned(4)))
|
||||||
#define ICACHE_RAM_ATTR __attribute__((section(".iram0.text")))
|
#define ICACHE_RAM_ATTR __attribute__((section(".iram0.text")))
|
||||||
// #define ICACHE_RODATA_ATTR __attribute__((section(".rodata2.text")))
|
|
||||||
|
|
||||||
#define CLIENT_SSL_ENABLE
|
#define CLIENT_SSL_ENABLE
|
||||||
#define GPIO_INTERRUPT_ENABLE
|
#define GPIO_INTERRUPT_ENABLE
|
||||||
|
|
|
@ -9,8 +9,9 @@ double floor(double x)
|
||||||
#define MAXEXP 2031 /* (MAX_EXP * 16) - 1 */
|
#define MAXEXP 2031 /* (MAX_EXP * 16) - 1 */
|
||||||
#define MINEXP -2047 /* (MIN_EXP * 16) - 1 */
|
#define MINEXP -2047 /* (MIN_EXP * 16) - 1 */
|
||||||
#define HUGE MAXFLOAT
|
#define HUGE MAXFLOAT
|
||||||
double a1[] =
|
|
||||||
{
|
double a1[] =
|
||||||
|
{
|
||||||
1.0,
|
1.0,
|
||||||
0.95760328069857365,
|
0.95760328069857365,
|
||||||
0.91700404320467123,
|
0.91700404320467123,
|
||||||
|
@ -28,9 +29,9 @@ double floor(double x)
|
||||||
0.54525386633262883,
|
0.54525386633262883,
|
||||||
0.52213689121370692,
|
0.52213689121370692,
|
||||||
0.50000000000000000
|
0.50000000000000000
|
||||||
};
|
};
|
||||||
double a2[] =
|
double a2[] =
|
||||||
{
|
{
|
||||||
0.24114209503420288E-17,
|
0.24114209503420288E-17,
|
||||||
0.92291566937243079E-18,
|
0.92291566937243079E-18,
|
||||||
-0.15241915231122319E-17,
|
-0.15241915231122319E-17,
|
||||||
|
@ -39,19 +40,20 @@ double floor(double x)
|
||||||
-0.44654376565694490E-17,
|
-0.44654376565694490E-17,
|
||||||
0.29306999570789681E-17,
|
0.29306999570789681E-17,
|
||||||
0.11260851040933474E-17
|
0.11260851040933474E-17
|
||||||
};
|
};
|
||||||
double p1 = 0.833333333333332114e-1;
|
double p1 = 0.833333333333332114e-1;
|
||||||
double p2 = 0.125000000005037992e-1;
|
double p2 = 0.125000000005037992e-1;
|
||||||
double p3 = 0.223214212859242590e-2;
|
double p3 = 0.223214212859242590e-2;
|
||||||
double p4 = 0.434457756721631196e-3;
|
double p4 = 0.434457756721631196e-3;
|
||||||
double q1 = 0.693147180559945296e0;
|
double q1 = 0.693147180559945296e0;
|
||||||
double q2 = 0.240226506959095371e0;
|
double q2 = 0.240226506959095371e0;
|
||||||
double q3 = 0.555041086640855953e-1;
|
double q3 = 0.555041086640855953e-1;
|
||||||
double q4 = 0.961812905951724170e-2;
|
double q4 = 0.961812905951724170e-2;
|
||||||
double q5 = 0.133335413135857847e-2;
|
double q5 = 0.133335413135857847e-2;
|
||||||
double q6 = 0.154002904409897646e-3;
|
double q6 = 0.154002904409897646e-3;
|
||||||
double q7 = 0.149288526805956082e-4;
|
double q7 = 0.149288526805956082e-4;
|
||||||
double k = 0.442695040888963407;
|
double k = 0.442695040888963407;
|
||||||
|
|
||||||
double pow(double x, double y)
|
double pow(double x, double y)
|
||||||
{
|
{
|
||||||
double frexp(), g, ldexp(), r, u1, u2, v, w, w1, w2, y1, y2, z;
|
double frexp(), g, ldexp(), r, u1, u2, v, w, w1, w2, y1, y2, z;
|
||||||
|
|
Loading…
Reference in New Issue