ref: 36bcb6d94f7ef17c9e40cf68fd26d78ec814c596
parent: b9656ec7e120d1fced20ea5ca826c57f2de4fc84
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Aug 5 09:21:22 EDT 2018
We don't need the impls in sin-impl.
--- a/lib/math/sin-impl.myr
+++ b/lib/math/sin-impl.myr
@@ -1,7 +1,6 @@
use std
use "fpmath"
-use "impls"
use "sum-impl" /* we use generics from here */
use "util"
@@ -524,7 +523,7 @@
we care about is a1*d2 + 2*a2*d1*d2
*/
cos_delta = horner_polyu(delta1, cos_coeff[:])
- cos_delta += delta2 * fma64(delta1, 2.0*std.flt64frombits(cos_coeff[2]), std.flt64frombits(cos_coeff[1]))
+ cos_delta += delta2 * fma(delta1, 2.0*std.flt64frombits(cos_coeff[2]), std.flt64frombits(cos_coeff[1]))
var q : flt64[4]