]>
git.proxmox.com Git - mirror_edk2.git/blob - StdLib/LibC/gdtoa/strtold_subr.c
1 /* $NetBSD: strtold_subr.c,v 1.1 2006/03/15 17:35:18 kleink Exp $ */
4 * Written by Klaus Klein <kleink@NetBSD.org>, November 16, 2005.
9 * NOTICE: This is not a standalone file. To use it, #include it in
10 * the format-specific strtold_*.c, like so:
12 * #define GDTOA_LD_FMT <gdtoa extended-precision format code>
13 * #include "strtold_subr.c"
15 #include <LibConfig.h>
16 #include <sys/EfiCdefs.h>
18 #include "namespace.h"
20 #include <sys/stdint.h>
25 __weak_alias(strtold
, _strtold
)
28 #ifndef __HAVE_LONG_DOUBLE
29 #error no extended-precision long double type
33 #error GDTOA_LD_FMT must be defined by format-specific source file
36 #define STRTOP(x) __CONCAT(strtop, x)
39 strtold(const char *nptr
, char **endptr
)
43 (void)STRTOP(GDTOA_LD_FMT
)(nptr
, endptr
, &ld
);