From b01f9253b2fe3f42ff74129013996af00cd90e31 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Mon, 2 Sep 2024 18:00:13 +0900 Subject: [PATCH] set MSM in MCL_MSM=1 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9dda1ef1..c3080ae7 100644 --- a/Makefile +++ b/Makefile @@ -189,11 +189,13 @@ src/bint32.ll: src/gen_bint.exe endif ifeq ($(ARCH),x86_64) ifneq ($(UNAME_S),Darwin) - MSM=msm_avx MCL_MSM?=1 endif endif ifeq ($(MCL_MSM),1) + ifeq ($(ARCH),x86_64) + MSM=msm_avx + endif CFLAGS+=-DMCL_MSM=1 LIB_OBJ+=$(OBJ_DIR)/$(MSM).o $(OBJ_DIR)/$(MSM).o: src/$(MSM).cpp src/$(MSM)_bls12_381.h src/avx512.hpp