summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-08-03 23:17:48 -0700
committerOri Bernstein <ori@eigenstate.org>2018-08-03 23:17:48 -0700
commit17b5405f1035985d60539f7d777b77cf56e7231a (patch)
tree4c1d8347131f740a9f99188d5f7bb847fe0d1c50
parentb941cdfdf1940e4a64492daf1a15d921c32f2dc2 (diff)
downloadmc-17b5405f1035985d60539f7d777b77cf56e7231a.tar.gz
Fix build on Linux.
-rw-r--r--lib/math/bld.sub1
-rw-r--r--lib/math/fma.myr4
-rw-r--r--lib/math/sin-impl.myr2
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/math/bld.sub b/lib/math/bld.sub
index c2e9da4..d84ab50 100644
--- a/lib/math/bld.sub
+++ b/lib/math/bld.sub
@@ -14,6 +14,7 @@ lib math =
# fused-multiply-add
fma-impl+posixy-x64-fma.s
fma-impl.myr
+ fma.myr
# log and log1p
log-impl.myr
diff --git a/lib/math/fma.myr b/lib/math/fma.myr
new file mode 100644
index 0000000..d3a42fb
--- /dev/null
+++ b/lib/math/fma.myr
@@ -0,0 +1,4 @@
+pkg math =
+ pkglocal extern const fma32 : (x : flt32, y : flt32, z : flt32 -> flt32)
+ pkglocal extern const fma64 : (x : flt64, y : flt64, z : flt64 -> flt64)
+;;
diff --git a/lib/math/sin-impl.myr b/lib/math/sin-impl.myr
index 4a9b0bc..569d732 100644
--- a/lib/math/sin-impl.myr
+++ b/lib/math/sin-impl.myr
@@ -1,7 +1,7 @@
use std
use "fpmath"
-use "fma-impl"
+use "fma"
use "scale2-impl"
use "sum-impl"
use "util"