From 0adcbc113c1df48d6d1c5a9d25fbf357da7b1323 Mon Sep 17 00:00:00 2001 From: maartenbrock Date: Tue, 28 Dec 2004 20:02:05 +0000 Subject: [PATCH] * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~ * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files to the SOURCES git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3618 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- ChangeLog | 8 +++++++- device/lib/sincosf.c | 2 +- support/regression/ports/mcs51-stack-auto/spec.mk | 9 ++++++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8259c547..84473337 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-28 Maarten Brock + + * device/lib/sincosf.c (sincosf): don't invert bit/bool by ~ + * support/regression/ports/mcs51-stack-auto/spec.mk: added new _fs.. files + to the SOURCES + 2004-12-28 Paul Stoffregen * device/lib/printf_fast_f.c: same as printf_fast, but @@ -59,7 +65,7 @@ * device/lib/printf_tiny.c: printf for mcs51 in only 267 bytes, and fully reentrant and register bank neutral. * device/lib/printf_fast.c: added float (not enabled by default), - added compact/slower integer (also not enabled by default), + added compact/slower integer (also not enabled by default), improved size/speed of fast integer code, other minor changes * device/include/stdio.h, device/lib/Makefile.in, device/lib/libsdcc.lib: integrate printf_tiny into mcs51 build diff --git a/device/lib/sincosf.c b/device/lib/sincosf.c index 90aca4af..e4750e45 100644 --- a/device/lib/sincosf.c +++ b/device/lib/sincosf.c @@ -66,7 +66,7 @@ float sincosf(const float x, const int iscos) N=((y*iPI)+0.5); /*y is positive*/ /*If N is odd change sign*/ - if(N&1) sign=~sign; + if(N&1) sign=!sign; XN=N; /*Cosine required? (is done here to keep accuracy)*/ diff --git a/support/regression/ports/mcs51-stack-auto/spec.mk b/support/regression/ports/mcs51-stack-auto/spec.mk index 32154b2c..1b654dfd 100644 --- a/support/regression/ports/mcs51-stack-auto/spec.mk +++ b/support/regression/ports/mcs51-stack-auto/spec.mk @@ -17,11 +17,14 @@ $(PORTS_DIR)/$(PORT)/%.c: $(PORTS_DIR)/mcs51/%.c SOURCES = _atoi.c _atol.c _autobaud.c _bp.c _schar2fs.c \ _decdptr.c _divsint.c _divslong.c _divuint.c \ _divulong.c _fs2schar.c _fs2sint.c _fs2slong.c \ - _fs2uchar.c _fs2uint.c _fs2ulong.c _fsadd.c \ - _fsdiv.c _fseq.c _fsgt.c _fslt.c _fsmul.c \ + _fs2uchar.c _fs2uint.c _fs2ulong.c \ + _fsadd.c _fssub.c _fsdiv.c _fsmul.c \ + _fseq.c _fsneq.c _fsgt.c _fslt.c _fscmp.c \ fabsf.c sqrtf.c logf.c log10f.c powf.c tanf.c \ errno.c frexpf.c ldexpf.c tancotf.c \ - _fsneq.c _fssub.c _gptrget.c _gptrput.c \ + _fsget1arg.c _fsget2args.c _fsnormalize.c \ + _fsreturnval.c _fsrshift.c _fsswapargs.c \ + _gptrget.c _gptrput.c \ _sint2fs.c _iscntrl.c _isdigit.c _isgraph.c \ _islower.c _isprint.c _ispunct.c _isspace.c \ _isupper.c _isxdigit.c _slong2fs.c \ -- 2.39.5