projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* device/lib/logf.c: "fixed" overlay bug
[fw/sdcc]
/
device
/
lib
/
logf.c
diff --git
a/device/lib/logf.c
b/device/lib/logf.c
index 2d3599ce4d11374730f666b9e1ac52c55f4e8e3c..c89778c774a6b457ce1ed8f6ff7f4fb22e7871c5 100644
(file)
--- a/
device/lib/logf.c
+++ b/
device/lib/logf.c
@@
-36,7
+36,12
@@
float logf(const float x) reentrant
{
- float Rz, f, z, w, znum, zden, xn;
+#if defined(SDCC_mcs51) && defined(SDCC_MODEL_SMALL) \
+ && !defined(SDCC_NOOVERLAY)
+ volatile
+#endif
+ float Rz;
+ float f, z, w, znum, zden, xn;
int n;
if (x<=0.0)