4 #include "compat/id-files-stat.c"
5 #include "compat/mmap-blob.c"
8 #include <floatingpoint.h>
12 long double string_to_ld(const char *str
, char **endptr
)
16 enum decimal_string_form form
;
18 fp_exception_field_type excp
;
21 string_to_decimal ((char **)&str
, INT_MAX
, 0,
23 if (endptr
) *endptr
= (char *)str
;
25 if (form
== invalid_form
) {
31 decimal_to_quadruple (&res
, &dm
, &dr
, &excp
);
32 if (excp
& ((1 << fp_overflow
) | (1 << fp_underflow
)))