shithub: mc

Download patch

ref: 17b5405f1035985d60539f7d777b77cf56e7231a
parent: b941cdfdf1940e4a64492daf1a15d921c32f2dc2
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Aug 3 19:17:48 EDT 2018

Fix build on Linux.

--- a/lib/math/bld.sub
+++ b/lib/math/bld.sub
@@ -14,6 +14,7 @@
 	# fused-multiply-add
 	fma-impl+posixy-x64-fma.s
 	fma-impl.myr
+	fma.myr
 
 	# log and log1p
 	log-impl.myr
--- /dev/null
+++ b/lib/math/fma.myr
@@ -1,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)
+;;
--- 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"