Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
cca0de9b
Commit
cca0de9b
authored
Feb 05, 2015
by
HuangRui
Browse files
Align the code of c_math.c
parent
bb244d47
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/include/user_config.h
View file @
cca0de9b
...
@@ -40,7 +40,6 @@
...
@@ -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
...
...
app/libc/c_math.c
View file @
cca0de9b
...
@@ -9,49 +9,51 @@ double floor(double x)
...
@@ -9,49 +9,51 @@ 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
,
{
0
.
95760328069857365
,
1
.
0
,
0
.
91700404320467123
,
0
.
95760328069857365
,
0
.
87812608018664974
,
0
.
91700404320467123
,
0
.
84089641525371454
,
0
.
87812608018664974
,
0
.
80524516597462716
,
0
.
84089641525371454
,
0
.
77110541270397041
,
0
.
80524516597462716
,
0
.
73841307296974966
,
0
.
77110541270397041
,
0
.
70710678118654752
,
0
.
73841307296974966
,
0
.
67712777346844637
,
0
.
70710678118654752
,
0
.
64841977732550483
,
0
.
67712777346844637
,
0
.
62092890603674203
,
0
.
64841977732550483
,
0
.
59460355750136054
,
0
.
62092890603674203
,
0
.
56939431737834583
,
0
.
59460355750136054
,
0
.
54525386633262883
,
0
.
56939431737834583
,
0
.
52213689121370692
,
0
.
54525386633262883
,
0
.
50000000000000000
0
.
52213689121370692
,
};
0
.
50000000000000000
double
a2
[]
=
};
{
double
a2
[]
=
0.24114209503420288E-17
,
{
0.92291566937243079E-18
,
0.24114209503420288E-17
,
-
0.15241915231122319E-17
,
0.92291566937243079E-18
,
-
0.35421849765286817E-17
,
-
0.15241915231122319E-17
,
-
0.31286215245415074E-17
,
-
0.35421849765286817E-17
,
-
0.44654376565694490E-17
,
-
0.31286215245415074E-17
,
0.29306999570789681E-17
,
-
0.44654376565694490E-17
,
0.11260851040933474E-17
0.29306999570789681E-17
,
};
0.11260851040933474E-17
double
p1
=
0.833333333333332114e-1
;
};
double
p2
=
0.125000000005037992e-1
;
double
p1
=
0.833333333333332114e-1
;
double
p3
=
0.223214212859242590e-2
;
double
p2
=
0.125000000005037992e-1
;
double
p4
=
0.434457756721631196e-3
;
double
p3
=
0.223214212859242590e-2
;
double
q1
=
0.693147180559945296e0
;
double
p4
=
0.434457756721631196e-3
;
double
q2
=
0.240226506959095371e0
;
double
q1
=
0.693147180559945296e0
;
double
q3
=
0.555041086640855953e-1
;
double
q2
=
0.240226506959095371e0
;
double
q4
=
0.961812905951724170e-2
;
double
q3
=
0.555041086640855953e-1
;
double
q5
=
0.133335413135857847e-2
;
double
q4
=
0.961812905951724170e-2
;
double
q6
=
0.154002904409897646e-3
;
double
q5
=
0.133335413135857847e-2
;
double
q7
=
0.149288526805956082e-4
;
double
q6
=
0.154002904409897646e-3
;
double
k
=
0
.
442695040888963407
;
double
q7
=
0.149288526805956082e-4
;
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment