normalize names for SSE levels

git-svn-id: http://skia.googlecode.com/svn/trunk@4440 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-07-03 12:08:39 +00:00
Родитель 6e5d63a4a2
Коммит 8dbd5725c0
1 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -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