aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-11-16 21:09:00 +0000
committerGravatar senorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2009-11-16 21:09:00 +0000
commit4e753558fc8cc2f77cbcd46fba80d8612e836a1e (patch)
tree4cc740987b4991df78a8eeadcd98fb7cfac82e83 /include
parent70149060a74bb212e67eb140be7cbf97a7cd36a8 (diff)
More SSE2-ification; fix for gcc -msse2.
Review URL: http://codereview.appspot.com/154163 git-svn-id: http://skia.googlecode.com/svn/trunk@428 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkUtils.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/core/SkUtils.h b/include/core/SkUtils.h
index 9f3b1d6f36..0700aeb47e 100644
--- a/include/core/SkUtils.h
+++ b/include/core/SkUtils.h
@@ -27,6 +27,8 @@
@param count The number of times value should be copied into the buffer.
*/
void sk_memset16_portable(uint16_t dst[], uint16_t value, int count);
+typedef void (*SkMemset16Proc)(uint16_t dst[], uint16_t value, int count);
+SkMemset16Proc SkMemset16GetPlatformProc();
/** Similar to memset(), but it assigns a 32bit value into the buffer.
@param buffer The memory to have value copied into it
@@ -34,6 +36,8 @@ void sk_memset16_portable(uint16_t dst[], uint16_t value, int count);
@param count The number of times value should be copied into the buffer.
*/
void sk_memset32_portable(uint32_t dst[], uint32_t value, int count);
+typedef void (*SkMemset32Proc)(uint32_t dst[], uint32_t value, int count);
+SkMemset32Proc SkMemset32GetPlatformProc();
#ifdef ANDROID
#include "cutils/memory.h"
@@ -43,14 +47,13 @@ void sk_memset32_portable(uint32_t dst[], uint32_t value, int count);
#endif
#ifndef sk_memset16
- #define sk_memset16(dst, value, count) sk_memset16_portable(dst, value, count)
+extern SkMemset16Proc sk_memset16;
#endif
#ifndef sk_memset32
- #define sk_memset32(dst, value, count) sk_memset32_portable(dst, value, count)
+extern SkMemset32Proc sk_memset32;
#endif
-
///////////////////////////////////////////////////////////////////////////
#define kMaxBytesInUTF8Sequence 4