git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@5373
4a8a32a2-be11-0410-ad9d-
d568d2c75423
* support/regression/tests/float_single.c: added regression
test. Some testpoints for probably rarely used functions
* support/regression/tests/float_single.c: added regression
test. Some testpoints for probably rarely used functions
- (acosf, sinhf, tanf, expf) disabled for some targets
+ (acosf, sinhf, tanf, expf) disabled for some targets
2008-02-10 Raphael Neider <rneider AT web.de>
2008-02-10 Raphael Neider <rneider AT web.de>
* device/lib/pic16/libc/stdio/sprintf.c,
device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
* device/lib/pic16/libc/stdio/sprintf.c,
device/lib/pic16/libc/stdio/vsprintf.c: do not mess up the user's
- pointer to the string buffer
+ pointer to the string buffer, enlarge buffer for x_ftoa()
2008-02-10 Borut Razem <borut.razem AT siol.net>
2008-02-10 Borut Razem <borut.razem AT siol.net>
+#if defined(USE_FLOATS)
+/* x_ftoa requires up to 8 digits (integral part) + '.' + 24 digits
+ * (fractional part). Adding a sign and a NUL byte yields 35 byte. */
+# define BUF_SIZE 36
+#elif defined(BINARY_SPECIFIER)
/* "%lb" = "0" - "11111111111111111111111111111111" */
# define BUF_SIZE 33
#else
/* "%lb" = "0" - "11111111111111111111111111111111" */
# define BUF_SIZE 33
#else