DescriptionThis CL continues the SSE-ificiation of Skia.
1) SSE2-ifies sk_memset16 and sk_memset32. This required making them into factory functions, with stubs that are swapped out on first call if SSE2 is present. In order to avoid introducing overhead for Android, I left that code as-is (ie., sk_memset32 is still a macro for Android).
2) Improves use of -msse2: when this flag is present, gcc may generate SSE2 instructions even for scalar code. For this reason, all of the CPUID and factory functions had to be moved out of the _SSE2 files, into a new file (opts_check_SSE2.cpp). Only the _SSE2 files should be compiled with -msse2.
3) Don't compile the CPUID code for gcc under x86_64. Since x86_64 has SSE2 by definition, simply return true.
Patch Set 1 #
MessagesTotal messages: 2
|