+++ /dev/null
-/* $NetBSD: strtold_subr.c,v 1.1 2006/03/15 17:35:18 kleink Exp $ */\r
-\r
-/*\r
- * Written by Klaus Klein <kleink@NetBSD.org>, November 16, 2005.\r
- * Public domain.\r
- */\r
-\r
-/*\r
- * NOTICE: This is not a standalone file. To use it, #include it in\r
- * the format-specific strtold_*.c, like so:\r
- *\r
- * #define GDTOA_LD_FMT <gdtoa extended-precision format code>\r
- * #include "strtold_subr.c"\r
- */\r
-#include <LibConfig.h>\r
-#include <sys/EfiCdefs.h>\r
-\r
-#include "namespace.h"\r
-#include <math.h>\r
-#include <sys/stdint.h>\r
-#include <stdlib.h>\r
-#include "gdtoa.h"\r
-\r
-#ifdef __weak_alias\r
-__weak_alias(strtold, _strtold)\r
-#endif\r
-\r
-#ifndef __HAVE_LONG_DOUBLE\r
-#error no extended-precision long double type\r
-#endif\r
-\r
-#ifndef GDTOA_LD_FMT\r
-#error GDTOA_LD_FMT must be defined by format-specific source file\r
-#endif\r
-\r
-#define STRTOP(x) __CONCAT(strtop, x)\r
-\r
-long double\r
-strtold(const char *nptr, char **endptr)\r
-{\r
- long double ld;\r
-\r
- (void)STRTOP(GDTOA_LD_FMT)(nptr, endptr, &ld);\r
- return ld;\r
-}\r