aboutsummaryrefslogtreecommitdiff
path: root/src/bigfloat.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-18 13:19:34 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-18 13:28:59 -0400
commit0aa36e882ede41d922c86c435cc9bc9ad71aad2d (patch)
tree2cb263ab389f70f392b65cbfc3431d6a98eccbba /src/bigfloat.cpp
parentb73d4f74c2826b8a87215eaaa1f4e4bfa88be81b (diff)
downloadzig-0aa36e882ede41d922c86c435cc9bc9ad71aad2d.tar.gz
zig-0aa36e882ede41d922c86c435cc9bc9ad71aad2d.zip
remove dependency on quadmath.h
Diffstat (limited to 'src/bigfloat.cpp')
-rw-r--r--src/bigfloat.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bigfloat.cpp b/src/bigfloat.cpp
index 1d24a50a3e..c1bfcbbb97 100644
--- a/src/bigfloat.cpp
+++ b/src/bigfloat.cpp
@@ -10,7 +10,15 @@
#include "buffer.hpp"
#include <math.h>
#include <errno.h>
-#include <quadmath.h>
+
+extern "C" {
+ __float128 fmodq(__float128 a, __float128 b);
+ __float128 ceilq(__float128 a);
+ __float128 floorq(__float128 a);
+ __float128 strtoflt128 (const char *s, char **sp);
+ int quadmath_snprintf (char *s, size_t size, const char *format, ...);
+}
+
void bigfloat_init_float(BigFloat *dest, __float128 x) {
dest->value = x;