Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#454: fixed compiling failure on older clang
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Oct 8, 2017
1 parent 3cdc12f commit 879e3a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions daemon/main/nzbget.h
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,6 @@ typedef int pid_t;
#define __SSE2__
#define __SSSE3__
#define __PCLMUL__
#define bit_SSE2 0x04000000
#define bit_SSSE3 0x00000200
#define bit_SSE4_1 0x00080000
#define bit_PCLMUL 0x00000002

#ifdef DEBUG
// redefine "exit" to avoid printing memory leaks report when terminated because of wrong command line switches
Expand Down
8 changes: 4 additions & 4 deletions lib/yencode/SimdInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ void init()
#if defined(__i686__) || defined(__amd64__)
CpuId cpuid(1);

bool cpu_supports_sse2 = cpuid.EDX() & bit_SSE2;
bool cpu_supports_ssse3 = cpuid.ECX() & bit_SSSE3;
bool cpu_supports_sse41 = cpuid.ECX() & bit_SSE4_1;
bool cpu_supports_pclmul = cpuid.ECX() & bit_PCLMUL;
bool cpu_supports_sse2 = cpuid.EDX() & 0x04000000;
bool cpu_supports_ssse3 = cpuid.ECX() & 0x00000200;
bool cpu_supports_sse41 = cpuid.ECX() & 0x00080000;
bool cpu_supports_pclmul = cpuid.ECX() & 0x00000002;

if (cpu_supports_sse2)
{
Expand Down

0 comments on commit 879e3a5

Please sign in to comment.