4 #include "compat/mmap-blob.c"
6 #include <floatingpoint.h>
10 long double string_to_ld(const char *str
, char **endptr
)
14 enum decimal_string_form form
;
16 fp_exception_field_type excp
;
19 string_to_decimal ((char **)&str
, INT_MAX
, 0,
21 if (endptr
) *endptr
= (char *)str
;
23 if (form
== invalid_form
) {
29 decimal_to_quadruple (&res
, &dm
, &dr
, &excp
);
30 if (excp
& ((1 << fp_overflow
) | (1 << fp_underflow
)))