From 9404d16a4263a87559af64bfb18c91ccebaa601d Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 24 Nov 2023 12:08:15 +0000 Subject: fix the 9 asm notes. add VFMA231[SP]D instructions. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index f30da53..fe51889 100644 --- a/main.c +++ b/main.c @@ -9,6 +9,7 @@ double dppd3(Point3, Point3); Point2 Pt2b(double, double, double); Point3 xvec3(Point3, Point3); double hsubpd(double, double); +double fma(double, double, double); double fmin(double a, double b) @@ -78,5 +79,10 @@ main(int argc, char *argv[]) t1 = nanosec(); print("crossvec3(%V, %V) = %V\ttook %lludns\n", p0t, p1t, pr, t1-t0); + t0 = nanosec(); + r = fma(a, b, 21); + t1 = nanosec(); + print("fma(%g, %g, 21) = %g\ttook %lludns\n", a, b, r, t1-t0); + exits(nil); } -- cgit v1.2.3