Skip to content

Commit

Permalink
msm_avx is enable except for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Sep 2, 2024
1 parent 0ffdc03 commit e3b5159
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile.onelib
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ BINT_OBJ=$(MCL_DIR)/$(OBJ_DIR)/bint$(BIT).o

ifeq ($(CPU),x86-64)
_ARCH=amd64
MSM=msm_avx
MCL_MSM?=1
ifneq ($(UNAME_S),Darwin)
MCL_MSM?=1
endif
endif
ifeq ($(CPU),aarch64)
_ARCH=arm64
Expand Down Expand Up @@ -73,6 +74,9 @@ MIN_CFLAGS+=-DMCL_USE_LLVM=1
OBJS+=$(BASE_OBJ)
endif
ifeq ($(MCL_MSM),1)
ifeq ($(CPU),x86-64)
MSM=msm_avx
endif
MIN_CFLAGS+=-DMCL_MSM=1
MSM_OBJ=$(MCL_DIR)/$(OBJ_DIR)/$(MSM).o
OBJS+=$(MSM_OBJ)
Expand Down

0 comments on commit e3b5159

Please sign in to comment.