From 9509634ca52e6aee9204267c981cec7fd58bb2e3 Mon Sep 17 00:00:00 2001 From: Logan007 Date: Wed, 3 Jun 2020 22:10:49 +0545 Subject: [PATCH] added SSE - Part II --- Makefile.in | 2 +- speck.h | 4 +++- tools/Makefile.in | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index bd4b23d..7810f54 100644 --- a/Makefile.in +++ b/Makefile.in @@ -7,7 +7,7 @@ GIT_COMMITS=@GIT_COMMITS@ CC?=gcc DEBUG?=-g3 -OPTIMIZATION?=-O3 +OPTIMIZATION?=-O3 -march=native WARN?=-Wall #Ultrasparc64 users experiencing SIGBUS should try the following gcc options diff --git a/speck.h b/speck.h index c44c6b4..f0402f2 100644 --- a/speck.h +++ b/speck.h @@ -9,7 +9,9 @@ typedef struct { u64 key[34]; } speck_context_t; #else - typedef u64 speck_context_t [34]; +typedef struct { + u64 key[34]; +} speck_context_t; #endif int speck_ctr (unsigned char *out, const unsigned char *in, diff --git a/tools/Makefile.in b/tools/Makefile.in index 3679f7a..ff7fe6d 100644 --- a/tools/Makefile.in +++ b/tools/Makefile.in @@ -1,6 +1,6 @@ CC?=gcc DEBUG?=-g3 -#OPTIMIZATION?=-O2 +OPTIMIZATION?=-O2 -march=native WARN?=-Wall INSTALL=install