From 8dbd5725c0a6681425c7a019c58c4cacdad2a238 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Tue, 3 Jul 2012 12:08:39 +0000 Subject: [PATCH] normalize names for SSE levels git-svn-id: http://skia.googlecode.com/svn/trunk@4440 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkPreConfig.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h index f4446c1ce..4c93837c0 100644 --- a/include/core/SkPreConfig.h +++ b/include/core/SkPreConfig.h @@ -109,25 +109,25 @@ * On non-intel CPU this should be undefined. */ -#define SK_CPU_LEVEL_SSE2_VALUE 20 -#define SK_CPU_LEVEL_SSE3_VALUE 30 -#define SK_CPU_LEVEL_SSSE3_VALUE 31 +#define SK_CPU_SSE_LEVEL_SSE2 20 +#define SK_CPU_SSE_LEVEL_SSE3 30 +#define SK_CPU_SSE_LEVEL_SSSE3 31 // Are we in GCC? #ifndef SK_CPU_SSE_LEVEL #if defined(__SSSE3__) - #define SK_CPU_SSE_LEVEL SK_CPU_LEVEL_SSSE3_VALUE + #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2 #elif defined(__SSE3__) - #define SK_CPU_SSE_LEVEL SK_CPU_LEVEL_SSE3_VALUE + #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE3 #elif defined(__SSE2__) - #define SK_CPU_SSE_LEVEL SK_CPU_LEVEL_SSE2_VALUE + #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSSE3 #endif #endif // Are we in VisualStudio? #ifndef SK_CPU_SSE_LEVEL #if _M_IX86_FP == 2 - #define SK_CPU_SSE_LEVEL SK_CPU_LEVEL_SSE2_VALUE + #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2 #endif #endif