diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); } |