From 839a3d17d257e73be9bc99dfa90e56c0824050ba Mon Sep 17 00:00:00 2001
From: Mattias Andrée <maandree@kth.se>
Date: Fri, 21 Jan 2022 18:29:26 +0100
Subject: Initial work on optimising compression function; mm128 version is
 slower, mm256 version is barely faster
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Mattias Andrée <maandree@kth.se>
---
 Makefile | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index da9b9a7..94909b2 100644
--- a/Makefile
+++ b/Makefile
@@ -67,14 +67,15 @@ OBJ_BLAKE2 =\
 	libblake_blake2xs_update.o\
 	libblake_internal_blake2b_compress.o\
 	libblake_internal_blake2s_compress.o\
-	libblake_internal_blake2s_output_digest.o\
 	libblake_internal_blake2b_output_digest.o\
+	libblake_internal_blake2s_output_digest.o\
 	libblake_internal_blake2xb_init0.o\
 	libblake_internal_blake2xs_init0.o
 
 OBJ =\
 	libblake_encode_hex.o\
 	libblake_decode_hex.o\
+	libblake_init.o\
 	$(OBJ_BLAKE)\
 	$(OBJ_BLAKE2)
 
@@ -96,6 +97,18 @@ test.o: $(HDR)
 .c.lo:
 	$(CC) -fPIC -c -o $@ $< $(CFLAGS) $(CPPFLAGS)
 
+libblake_internal_blake2b_compress_mm128.o: libblake_internal_blake2b_compress_mm128.c $(HDR)
+	$(CC) -c -o $@ $(@:.o=.c) $(CFLAGS) $(CPPFLAGS) $(CFLAGS_MM128)
+
+libblake_internal_blake2b_compress_mm128.lo: libblake_internal_blake2b_compress_mm128.c $(HDR)
+	$(CC) -c -o $@ $(@:.lo=.c) $(CFLAGS) $(CPPFLAGS) $(CFLAGS_MM128)
+
+libblake_internal_blake2b_compress_mm256.o: libblake_internal_blake2b_compress_mm256.c $(HDR)
+	$(CC) -c -o $@ $(@:.o=.c) $(CFLAGS) $(CPPFLAGS) $(CFLAGS_MM256)
+
+libblake_internal_blake2b_compress_mm256.lo: libblake_internal_blake2b_compress_mm256.c $(HDR)
+	$(CC) -c -o $@ $(@:.lo=.c) $(CFLAGS) $(CPPFLAGS) $(CFLAGS_MM256)
+
 test: test.o libblake.a
 	$(CC) -o $@ test.o libblake.a $(LDFLAGS)
 
-- 
cgit v1.2.3-70-g09d2