1
From 96f779edff0eb2b425bf19593284c4318d1a4901 Mon Sep 17 00:00:00 2001
2
From: Henrik Andersson <hean01@users.sourceforge.net>
3
Date: Fri, 22 Apr 2011 10:33:00 +0200
4
Subject: [PATCH] Fixed some small things.. (cherry picked from commit
5
b1f2c68a04e576edf377d8069cdf974aa4c6f84e)
8
src/common/darktable.c | 17 +++--------------
9
1 files changed, 3 insertions(+), 14 deletions(-)
11
diff --git a/src/common/darktable.c b/src/common/darktable.c
12
index 3e928f8..1767cea 100644
13
--- a/src/common/darktable.c
14
+++ b/src/common/darktable.c
15
@@ -109,24 +109,13 @@ void dt_check_cpu(int argc,char **argv)
17
strcat(message,_("SIMD extensions found: "));
18
if((cx & 1) && (darktable.cpu_flags |= DT_CPU_FLAG_SSE3))
21
strcat(message,"SSE3 ");
23
if( ((dx >> 26) & 1) && (darktable.cpu_flags |= DT_CPU_FLAG_SSE2))
26
strcat(message,"SSE2 ");
28
- else if (((dx >> 25) & 1) && (darktable.cpu_flags |= DT_CPU_FLAG_SSE))
31
- strcat(message,"SSE ");
35
+ if (((dx >> 25) & 1) && (darktable.cpu_flags |= DT_CPU_FLAG_SSE))
36
+ strcat(message,"SSE ");
37
+ if (!darktable.cpu_flags)
38
strcat(message,"none");
41
/* for now, bail out if SSE2 is not availble */
42
if(!(darktable.cpu_flags & DT_CPU_FLAG_SSE2))