From: jesusc Date: Sat, 19 Nov 2005 18:17:27 +0000 (+0000) Subject: Removed previous changes as the problem is fixed in _fs2slong.c, X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=07fb51f9421a70d166beb5899a1df917e8a106e0;p=fw%2Fsdcc Removed previous changes as the problem is fixed in _fs2slong.c, _fs2sint.c, and _fs2char.c git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3965 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/device/lib/ceilf.c b/device/lib/ceilf.c index 66301be0..54b7c0fe 100644 --- a/device/lib/ceilf.c +++ b/device/lib/ceilf.c @@ -24,7 +24,6 @@ float ceilf(float x) _FLOAT_FUNC_REENTRANT { long r; r=x; - if(r==0x80000000) r=0; //-0? if (r<0) return r; else diff --git a/device/lib/floorf.c b/device/lib/floorf.c index b46581b1..f12adae1 100644 --- a/device/lib/floorf.c +++ b/device/lib/floorf.c @@ -24,7 +24,6 @@ float floorf (float x) _FLOAT_FUNC_REENTRANT { long r; r=x; - if(r==0x80000000) r=0; //-0? if (r<=0) return (r+((r>x)?-1:0)); else diff --git a/device/lib/modff.c b/device/lib/modff.c index 2286c3b8..46828764 100644 --- a/device/lib/modff.c +++ b/device/lib/modff.c @@ -22,9 +22,6 @@ float modff(float x, float * y) { - long r; - r=x; - if(r==0x80000000) r=0; //-0? - *y=r; + *y=(long)x; return (x-*y); }