Skip to content

Commit f1ca318

Browse files
committed
sse2 on 32bit systems
1 parent c549a46 commit f1ca318

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

hempcoin-qt.pro

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@ CONFIG += no_include_pwd
99
CONFIG += thread
1010
CONFIG += static
1111

12-
DEFINES += USE_SSE2
13-
14-
QMAKE_CXXFLAGS = -fpermissive
12+
DEFINES += USE_SSE2 USE_SSE2_ALWAYS
1513

1614
greaterThan(QT_MAJOR_VERSION, 4) {
1715
QT += widgets
18-
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0
1916
}
2017

2118

@@ -155,12 +152,8 @@ contains(USE_O3, 1) {
155152
QMAKE_CFLAGS += -O3
156153
}
157154

158-
*-g++-32 {
159-
message("32 platform, adding -msse2 flag")
160-
161-
QMAKE_CXXFLAGS += -msse2
162-
QMAKE_CFLAGS += -msse2
163-
}
155+
QMAKE_CXXFLAGS += -msse2
156+
QMAKE_CFLAGS += -msse2
164157

165158
QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wno-deprecated -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector
166159

src/makefile.unix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ USE_IPV6:=1
88
LINK:=$(CXX)
99
ARCH:=$(system lscpu | head -n 1 | awk '{print $2}')
1010

11-
DEFS=-DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
11+
DEFS=-DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DUSE_SSE2 -DUSE_SSE2_ALWAYS
1212

1313
DEFS += $(addprefix -I,$(CURDIR) $(CURDIR)/obj $(BOOST_INCLUDE_PATH) $(BDB_INCLUDE_PATH) $(OPENSSL_INCLUDE_PATH))
1414
LIBS = $(addprefix -L,$(BOOST_LIB_PATH) $(BDB_LIB_PATH) $(OPENSSL_LIB_PATH))

src/scrypt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ std::string scrypt_detect_sse2()
313313
if (cpuid_edx & 1<<26)
314314
{
315315
scrypt_1024_1_1_256_sp_detected = &scrypt_1024_1_1_256_sp_sse2;
316-
ret = "scrypt: using scrypt-sse2 as detected");
316+
ret = "scrypt: using scrypt-sse2 as detected";
317317
}
318318
else
319319
{

0 commit comments

Comments
 (0)