authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-08-18 13:19:34-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-08-18 13:28:59-04:00
log0aa36e882ede41d922c86c435cc9bc9ad71aad2d
tree2cb263ab389f70f392b65cbfc3431d6a98eccbba
parentb73d4f74c2826b8a87215eaaa1f4e4bfa88be81b

remove dependency on quadmath.h


1 files changed, 9 insertions(+), 1 deletions(-)

src/bigfloat.cpp+9-1
......@@ -10,7 +10,15 @@
1010#include "buffer.hpp"
1111#include <math.h>
1212#include <errno.h>
13#include <quadmath.h>
13
14extern "C" {
15 __float128 fmodq(__float128 a, __float128 b);
16 __float128 ceilq(__float128 a);
17 __float128 floorq(__float128 a);
18 __float128 strtoflt128 (const char *s, char **sp);
19 int quadmath_snprintf (char *s, size_t size, const char *format, ...);
20}
21
1422
1523void bigfloat_init_float(BigFloat *dest, __float128 x) {
1624 dest->value = x;