]> Git Repo - haraka-avx512.git/blame - main.c
t
[haraka-avx512.git] / main.c
CommitLineData
23e3fea5 1/*
2Timing code for optimized implementation of Haraka.
3*/
4
5#include "stdio.h"
6#include "stdlib.h"
7#include <string.h>
8#include <stdint.h>
9#include "haraka.h"
10#include "timing.h"
11#include <stdalign.h>
12
13
b6b666a8 14static void phex(uint8_t* str)
23e3fea5 15{
b6b666a8 16 uint8_t len = 64;
23e3fea5 17
18 unsigned char i;
19 for (i = 0; i < len; ++i)
20 printf("%lx, ", str[i]);
21 printf("\n");
22}
23int main() {
b6b666a8 24 uint8_t a[64];
25 uint8_t b[16] = {0};
26 for(int i = 0; i <64;i++)a[i] = i;
23e3fea5 27 load_constants();
28 haraka512((uint8_t*)b,(uint8_t*)a);
29phex(b);
30}
This page took 0.024872 seconds and 4 git commands to generate.