From 675aa84403f98776a7d463e1cc5f9bd41cdbab92 Mon Sep 17 00:00:00 2001 From: rodri Date: Sat, 25 Nov 2023 10:34:41 +0000 Subject: cleaned things up and improved the organization a bit. --- main.c | 94 ++++++++++++++++++++++++++++++------------------------------------ 1 file changed, 43 insertions(+), 51 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index f14a7ed..274daf4 100644 --- a/main.c +++ b/main.c @@ -2,16 +2,16 @@ #include #include -uvlong nanosec(void); double min(double, double); -double dppd(Point2, Point2); -double dppda(Point2, Point2); -double dppd3(Point3, Point3); -double dppd3a(Point3, Point3); +double dotvec2_sse4(Point2, Point2); +double dotvec2_avx(Point2, Point2); +double dotvec3_sse4(Point3, Point3); +double dotvec3_avx(Point3, Point3); Point2 Pt2b(double, double, double); -Point3 xvec3(Point3, Point3); +Point3 crossvec3_sse(Point3, Point3); double hsubpd(double, double); double fma(double, double, double); +Point2 addpt2_avx(Point2, Point2); double fmin(double a, double b) @@ -19,13 +19,18 @@ fmin(double a, double b) return a