]> Git Repo - haraka-avx512.git/blobdiff - main.c
run
[haraka-avx512.git] / main.c
diff --git a/main.c b/main.c
index b5b683019be43db2aebdb9c8af88ca8d71dd233d..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"
@@ -21,24 +18,6 @@ static void phex(uint8_t* str)
     printf("\n");
 }
 int main() {
-       alignas(64) uint8_t a[64] = {0x6b, 0x2e, 0xe9, 0x73, 0xc1, 0x40, 0x3d, 0x93, 0xbe, 0x9f, 0x7e, 0x17, 0xe2, 0x96, 0x11, 0x2a};
-       alignas(64) uint8_t b[64] = {0x6b, 0x2e, 0xe9, 0x73, 0xc1, 0x40, 0x3d, 0x93, 0xbe, 0x9f, 0x7e, 0x17, 0xe2, 0x96, 0x11, 0x2a};
-       alignas(64) uint8_t c[64] = {0x6b, 0x2e, 0xe9, 0x73, 0xc1, 0x40, 0x3d, 0x93, 0xbe, 0x9f, 0x7e, 0x17, 0xe2, 0x96, 0x11, 0x2a};
-       alignas(64) uint8_t key[64] = {0x6b, 0x2e, 0xe9, 0x73, 0xc1, 0x40, 0x3d, 0x93, 0xbe, 0x9f, 0x7e, 0x17, 0xe2, 0x96, 0x11, 0x2a};
-       load_constants();
- __m512i s = LOAD (b);
- __m512i i = LOAD (key);
-
-       __m128i k = _mm_loadu_si128((__m128i *) key);
-       __m128i test = _mm_loadu_si128((__m128i *) b);
-        __m128i m =_mm_aesenc_si128    (test, k);
-        _mm_storeu_si128((__m128i *) a,m);
-       aes((_512_state*)c,(_512_key*)key);
-  aes2(s,i);
-  STORE(b,s);
-  phex(b);
-  phex(a);
-  phex(c);
-       //haraka512(b,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.022079 seconds and 4 git commands to generate.