aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
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);
}