* 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>
* 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>
*/
#define EXTRA_INTEGER
-#ifdef BINARY_SPECIFIER
+#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