From 4615ed5ea003516c8235728ac3f5f0ee2ccea8a7 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 22 Mar 2019 14:56:03 -0400 Subject: float literals now parse using musl's 128 bit float code fixes float literals not having 128 bit precision --- src/parse_f128.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/parse_f128.h (limited to 'src/parse_f128.h') diff --git a/src/parse_f128.h b/src/parse_f128.h new file mode 100644 index 0000000000..684b666024 --- /dev/null +++ b/src/parse_f128.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2015 Andrew Kelley + * + * This file is part of zig, which is MIT licensed. + * See http://opensource.org/licenses/MIT + */ + +#ifndef ZIG_PARSE_F128_H +#define ZIG_PARSE_F128_H + +#include "softfloat_types.h" + +#ifdef __cplusplus +#define ZIG_EXTERN_C extern "C" +#define ZIG_RESTRICT +#else +#define ZIG_EXTERN_C +#define ZIG_RESTRICT restrict +#endif + +ZIG_EXTERN_C float128_t parse_f128(const char *ZIG_RESTRICT s, char **ZIG_RESTRICT p); + +#endif -- cgit v1.2.3