зеркало из https://github.com/mozilla/moz-skia.git
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:
Родитель
6e5d63a4a2
Коммит
8dbd5725c0
|
@ -109,25 +109,25 @@
|
||||||
* On non-intel CPU this should be undefined.
|
* On non-intel CPU this should be undefined.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define SK_CPU_LEVEL_SSE2_VALUE 20
|
#define SK_CPU_SSE_LEVEL_SSE2 20
|
||||||
#define SK_CPU_LEVEL_SSE3_VALUE 30
|
#define SK_CPU_SSE_LEVEL_SSE3 30
|
||||||
#define SK_CPU_LEVEL_SSSE3_VALUE 31
|
#define SK_CPU_SSE_LEVEL_SSSE3 31
|
||||||
|
|
||||||
// Are we in GCC?
|
// Are we in GCC?
|
||||||
#ifndef SK_CPU_SSE_LEVEL
|
#ifndef SK_CPU_SSE_LEVEL
|
||||||
#if defined(__SSSE3__)
|
#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__)
|
#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__)
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Are we in VisualStudio?
|
// Are we in VisualStudio?
|
||||||
#ifndef SK_CPU_SSE_LEVEL
|
#ifndef SK_CPU_SSE_LEVEL
|
||||||
#if _M_IX86_FP == 2
|
#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
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче