From d8c07248dee91e0b99e6f940c212c3316b2727e1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 May 2012 03:11:52 +0000 Subject: Tidy up SSE detection code. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4464 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/util.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/server') 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) { -- cgit v1.2.1