Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
361bedf0
Commit
361bedf0
authored
Feb 05, 2015
by
HuangRui
Browse files
Optimization of memory usage when using double pow(double x, double y).
parent
cca0de9b
Changes
1
Show whitespace changes
Inline
Side-by-side
app/libc/c_math.c
View file @
361bedf0
#include "c_math.h"
#include "c_types.h"
#include "user_config.h"
double
floor
(
double
x
)
{
...
...
@@ -10,7 +11,7 @@ double floor(double x)
#define MINEXP -2047
/* (MIN_EXP * 16) - 1 */
#define HUGE MAXFLOAT
double
a1
[]
=
double
a1
[]
ICACHE_STORE_ATTR
ICACHE_RODATA_ATTR
=
{
1
.
0
,
0
.
95760328069857365
,
...
...
@@ -30,7 +31,7 @@ double a1[] =
0
.
52213689121370692
,
0
.
50000000000000000
};
double
a2
[]
=
double
a2
[]
ICACHE_STORE_ATTR
ICACHE_RODATA_ATTR
=
{
0.24114209503420288E-17
,
0.92291566937243079E-18
,
...
...
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