aboutsummaryrefslogtreecommitdiff
path: root/win32/amd64
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-04-01 14:53:59 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-04-01 14:53:59 +0900
commit24225349831278c23c6dfc4515e071f4b27b2c41 (patch)
tree35a853f7f35a53560a5b1bcfd5eda3213990b872 /win32/amd64
parent5460067b61f86843a0435ebb06a6ebb8223c3dca (diff)
add sse2/ssse3 simd optimization
Diffstat (limited to 'win32/amd64')
-rw-r--r--win32/amd64/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/win32/amd64/Makefile b/win32/amd64/Makefile
index 177ef90..22ef073 100644
--- a/win32/amd64/Makefile
+++ b/win32/amd64/Makefile
@@ -9,14 +9,16 @@ vpath %.rc ..
include ../fmplayer.mak
OBJS=$(addsuffix .o,$(OBJBASE) $(RESBASE))
+OBJS+=$(addsuffix .sse.o,$(SSEOBJBASE))
ARCH=x86_64
PREFIX=$(ARCH)-w64-mingw32-
CC=$(PREFIX)gcc
WINDRES=$(PREFIX)windres
STRIP=$(PREFIX)strip
-CFLAGS=-std=c99 -O2 -Wall -Wextra -Werror -pedantic -Wno-unused-parameter -Wno-missing-field-initializers -I../.. \
+CFLAGS=-std=c99 -O2 -Wall -Werror -Wextra -pedantic -Wno-unused-parameter -Wno-missing-field-initializers -I../.. \
$(addprefix -D,$(DEFINES))
-LIBS=-s -mwindows -municode \
+SSECFLAGS=-mssse3 -O3
+LIBS=-mwindows -municode \
$(addprefix -l,$(LIBBASE))
$(TARGET): $(OBJS)
@@ -28,6 +30,10 @@ $(TARGET): $(OBJS)
@echo " CC $@"
@$(CC) $(CFLAGS) -c $< -o $@
+%.sse.o: %.c
+ @echo " CC $@"
+ @$(CC) $(CFLAGS) $(SSECFLAGS) -c $< -o $@
+
%.o: %.rc $(ICON)
@echo " WINDRES $@"
@$(WINDRES) -o $@ -i $<