summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-27 03:11:52 +0000
committerDavid Robillard <d@drobilla.net>2012-05-27 03:11:52 +0000
commitd8c07248dee91e0b99e6f940c212c3316b2727e1 (patch)
tree45fe3bc1aa9b857c9c4eaf8f62220fbdc0eeee42 /src
parentfb20b2bab30af9b69f4d914471517182d87f1397 (diff)
downloadingen-d8c07248dee91e0b99e6f940c212c3316b2727e1.tar.gz
ingen-d8c07248dee91e0b99e6f940c212c3316b2727e1.tar.bz2
ingen-d8c07248dee91e0b99e6f940c212c3316b2727e1.zip
Tidy up SSE detection code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4464 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/server/util.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/server/util.hpp b/src/server/util.hpp
index d615a6df..10c08d7f 100644
--- a/src/server/util.hpp
+++ b/src/server/util.hpp
@@ -55,15 +55,13 @@ set_denormal_flags()
#ifdef USE_ASSEMBLY
#ifdef __SSE__
unsigned long a, b, c, d0, d1;
- int stepping, model, family, extfamily;
-
cpuid(a, b, c, d1, 1);
if (d1 & 1<<25) { /* It has SSE support */
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
- family = (a >> 8) & 0xF;
- extfamily = (a >> 20) & 0xFF;
- model = (a >> 4) & 0xF;
- stepping = a & 0xF;
+ const int family = (a >> 8) & 0xF;
+ const int extfamily = (a >> 20) & 0xFF;
+ const int model = (a >> 4) & 0xF;
+ const int stepping = a & 0xF;
cpuid(a, b, c, d0, 0);
if (b == 0x756e6547) { /* It's an Intel */
if (family == 15 && extfamily == 0 && model == 0 && stepping < 7) {