]> Git Repo - haraka-avx512.git/blobdiff - main.c
t
[haraka-avx512.git] / main.c
diff --git a/main.c b/main.c
index 8e5559cab8394caa2c79519713f5065fb6fbbbee..d972f4581fbfc4252a1f7c02386065f8b232f55d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -11,9 +11,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,9 +21,9 @@ 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};
-
+       uint8_t a[64];
+       uint8_t b[16] = {0};
+       for(int i = 0; i <64;i++)a[i] = i;
        load_constants();
        haraka512((uint8_t*)b,(uint8_t*)a);
 phex(b);
This page took 0.023464 seconds and 4 git commands to generate.