]> Git Repo - haraka-avx512.git/blobdiff - main.c
run
[haraka-avx512.git] / main.c
diff --git a/main.c b/main.c
index 8e5559cab8394caa2c79519713f5065fb6fbbbee..9173b6d153e8334aa94187a39fcd1697cbe5eef8 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,6 +1,3 @@
-/*
-Timing code for optimized implementation of Haraka.
-*/
 
 #include "stdio.h"
 #include "stdlib.h"
@@ -11,9 +8,9 @@ Timing code for optimized implementation of Haraka.
 #include <stdalign.h>
 
 
-static void phex(uint32_t* str)
+static void phex(uint8_t* str)
 {
-    uint8_t len = 16;
+    uint8_t len = 64;
 
     unsigned char i;
     for (i = 0; i < len; ++i)
@@ -21,10 +18,6 @@ static void phex(uint32_t* str)
     printf("\n");
 }
 int main() {
-       alignas(64) uint32_t a[16] = {1,2,4,5,6,7,8,9,10,12,13,14,15};
-       alignas(64) uint32_t b[16] = {1};
-
-       load_constants();
-       haraka512((uint8_t*)b,(uint8_t*)a);
-phex(b);
+       if(test_implementations() != 0)printf("help"); // lol i think i can just do without the != 0 cus C
+       else printf("ayayay");
 }
This page took 0.021535 seconds and 4 git commands to generate.