accelerated crc32 with PCLMUL instruction

This commit is contained in:
Martins Mozeiko
2017-10-31 21:05:38 -07:00
parent 4e223448de
commit d68672dc7f
6 changed files with 420 additions and 15 deletions
+5 -1
View File
@@ -24,10 +24,14 @@ ${BIN}: ${OBJ}
@echo [L] $@
@${CC} ${LDFLAGS} -o $@ $^
%_x86.o: %_x86.c
%aes_x86.o: %aes_x86.c
@echo [C] $<
@${CC} ${CFLAGS} -maes -mssse3 -MMD -c -o $@ $<
%crc32_x86.o: %crc32_x86.c
@echo [C] $<
@${CC} ${CFLAGS} -mpclmul -msse4 -MMD -c -o $@ $<
%.o: %.c
@echo [C] $<
@${CC} ${CFLAGS} -MMD -c -o $@ $<