diff options
| -rw-r--r-- | cheesemap.c | 2 | ||||
| -rw-r--r-- | cheesemap.h | 2 | ||||
| -rw-r--r-- | makefile | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cheesemap.c b/cheesemap.c index 4eba2c8..36ad496 100644 --- a/cheesemap.c +++ b/cheesemap.c @@ -107,7 +107,7 @@ static inline bitmask_t cm_group_match_empty(group_t group); static inline bitmask_t cm_group_match_full(group_t group); /* sse2 implementation */ -#ifdef CM_OPT_ENABLE_SSE2 +#ifdef CM_ENABLE_SSE2 static inline group_t cm_group_load(const uint8_t* ctrl) { cm_assert(ctrl != NULL); return _mm_loadu_si128((const group_t*)ctrl); diff --git a/cheesemap.h b/cheesemap.h index e736588..a309741 100644 --- a/cheesemap.h +++ b/cheesemap.h @@ -22,7 +22,7 @@ _Noreturn void CM_PANIC_SYM(const char* file, uint32_t line, const char* fmt, CM_PANIC_SYM(__FILE__, __LINE__, "cm_assertion failed: %s", #cond); \ } while (0) -#ifdef CM_OPT_ENABLE_SSE2 +#ifdef CM_ENABLE_SSE2 #include <emmintrin.h> typedef __m128i group_t; @@ -3,7 +3,7 @@ # Build configuration options CM_OPT_CC_FLAGS ?= -CM_OPT_PANIC_NAME ?= panic_impl +CM_OPT_PANIC_SYM ?= panic_impl CM_OPT_RELEASE ?= 1 CM_OPT_ENABLE_UBSAN ?= 0 CM_OPT_ENABLE_ASAN ?= 0 @@ -27,7 +27,7 @@ cm_CFLAGS = -std=gnu11 \ -MMD -MP -I$(CM_DIR) cm_CFLAGS += $(CM_OPT_CC_FLAGS) -cm_CFLAGS += -DCM_OPT_PANIC_NAME='$(CM_OPT_PANIC_NAME)' +cm_CFLAGS += -DCM_PANIC_SYM='$(CM_OPT_PANIC_SYM)' ifeq ($(CM_OPT_RELEASE),1) cm_CFLAGS += -O2 -fno-stack-protector @@ -44,7 +44,7 @@ ifeq ($(CM_OPT_ENABLE_ASAN),1) endif ifeq ($(CM_OPT_ENABLE_SSE2),1) - cm_CFLAGS += -DCM_OPT_ENABLE_SSE2=1 -msse2 + cm_CFLAGS += -DCM_ENABLE_SSE2=1 -msse2 endif # Target: cm_demo |
