3 #include "compat/id-files-stat.c"
4 #include "compat/mmap-blob.c"
7 #include <floatingpoint.h>
11 long double string_to_ld(const char *str
, char **endptr
)
15 enum decimal_string_form form
;
17 fp_exception_field_type excp
;
20 string_to_decimal ((char **)&str
, INT_MAX
, 0,
22 if (endptr
) *endptr
= (char *)str
;
24 if (form
== invalid_form
) {
30 decimal_to_quadruple (&res
, &dm
, &dr
, &excp
);
31 if (excp
& ((1 << fp_overflow
) | (1 << fp_underflow
)))