aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2021-11-29 21:56:46 +0900
committerTakashi Yano <takashi.yano@nifty.ne.jp>2021-11-29 22:51:16 +0900
commit48f6c59332ee2970cd4b172278176dcfe32a328d (patch)
tree958c95110c5543b1e8f04b9b662fc21b4dcf706d /newlib/libc/include
parent3502a6ff2e2740afb6cce71a95c715e80edadff5 (diff)
downloadnewlib-48f6c59332ee2970cd4b172278176dcfe32a328d.zip
newlib-48f6c59332ee2970cd4b172278176dcfe32a328d.tar.gz
newlib-48f6c59332ee2970cd4b172278176dcfe32a328d.tar.bz2
stdio: Fix issue of printing "%La" format with large exp part.
- Currently, printf("%La\n", 1e1000L) crashes with segv due to lack of frexpl() function. With this patch, frexpl() function has been implemented in libm to solve this issue. Addresses: https://sourceware.org/pipermail/newlib/2021/018718.html
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/math.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/include/math.h b/newlib/libc/include/math.h
index 0b6494e..799ac49 100644
--- a/newlib/libc/include/math.h
+++ b/newlib/libc/include/math.h
@@ -509,6 +509,7 @@ extern long double erfcl (long double);
#else /* !_LDBL_EQ_DBL && !__CYGWIN__ */
extern long double hypotl (long double, long double);
extern long double sqrtl (long double);
+extern long double frexpl (long double, int *);
#ifdef __i386__
/* Other long double precision functions. */
extern _LONG_DOUBLE rintl (_LONG_DOUBLE);