Link Here
|
|
|
1 |
--- ./src/CMakeLists.txt.orig 2015-02-12 21:57:26.000000000 +0100 |
2 |
+++ ./src/CMakeLists.txt 2015-02-12 21:58:18.000000000 +0100 |
3 |
@@ -385,7 +385,7 @@ |
4 |
|
5 |
if(NOT CUSTOM_CFLAGS) |
6 |
#we MUST always specify our requred instruction set, native might not detect it |
7 |
- set(DT_REQ_INSTRUCTIONS "-msse3") |
8 |
+ set(DT_REQ_INSTRUCTIONS "-msse2") |
9 |
|
10 |
if(NOT BINARY_PACKAGE_BUILD AND (NOT APPLE OR CMAKE_C_COMPILER_ID STREQUAL "Clang")) |
11 |
MESSAGE("-- Checking for -march=native support") |
12 |
--- ./src/common/darktable.c.orig 2015-02-12 22:00:14.000000000 +0100 |
13 |
+++ ./src/common/darktable.c 2015-02-12 22:01:30.000000000 +0100 |
14 |
@@ -397,19 +397,19 @@ |
15 |
#define __has_builtin(x) false |
16 |
#endif |
17 |
|
18 |
-#ifndef __SSE3__ |
19 |
+#ifndef __SSE2__ |
20 |
#error "Unfortunately we depend on SSE3 instructions at this time." |
21 |
#error "Please contribute a backport patch (or buy a newer processor)." |
22 |
#else |
23 |
- int sse3_supported = 0; |
24 |
+ int sse2_supported = 0; |
25 |
|
26 |
#if(__GNUC_PREREQ(4, 8) || __has_builtin(__builtin_cpu_supports)) |
27 |
// NOTE: _may_i_use_cpu_feature() looks better, but only avaliable in ICC |
28 |
- sse3_supported = __builtin_cpu_supports("sse3"); |
29 |
+ sse2_supported = __builtin_cpu_supports("sse2"); |
30 |
#else |
31 |
- sse3_supported = dt_detect_cpu_features() & CPU_FLAG_SSE3; |
32 |
+ sse2_supported = dt_detect_cpu_features() & CPU_FLAG_SSE2; |
33 |
#endif |
34 |
- if(!sse3_supported) |
35 |
+ if(!sse2_supported) |
36 |
{ |
37 |
fprintf(stderr, "[dt_init] unfortunately we depend on SSE3 instructions at this time.\n"); |
38 |
fprintf(stderr, "[dt_init] please contribute a backport patch (or buy a newer processor).\n"); |