Skip to content

Commit 4c25910

Browse files
authored
Merge pull request #2896 from martin-frbg/intrin-double
Add compiler flag for SSE4 where available
2 parents 9b9ee92 + ae6ac83 commit 4c25910

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile.x86_64

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ ifdef HAVE_SSSE3
1616
CCOMMON_OPT += -mssse3
1717
FCOMMON_OPT += -mssse3
1818
endif
19+
ifdef HAVE_SSE4_1
20+
CCOMMON_OPT += -msse4.1
21+
FCOMMON_OPT += -msse4.1
22+
endif
1923
endif
2024
endif
2125

kernel/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ endif
4545

4646
ifdef TARGET_CORE
4747
ifeq ($(TARGET_CORE), $(filter $(TARGET_CORE),PRESCOTT CORE2 PENRYN DUNNINGTON ATOM NANO SANDYBRIDGE HASWELL NEHALEM ZEN BARCELONA BOBCAT BULLDOZER PILEDRIVER EXCAVATOR STEAMROLLER OPTERON_SSE3))
48-
override CFLAGS += -msse3 -mssse3
48+
override CFLAGS += -msse3 -mssse3 -msse4.1
4949
endif
5050
ifeq ($(TARGET_CORE), COOPERLAKE)
5151
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)

0 commit comments

Comments
 (0)