diff options
author | 2014-04-30 14:58:46 +0000 | |
---|---|---|
committer | 2014-04-30 14:58:46 +0000 | |
commit | 8c4953c6f176469ad287c3270ab146e292b23bad (patch) | |
tree | 4c7cdf4af19ef7c8ab754d9a4407b0f8ebea7ff7 /src/opts/SkBlitRect_opts_SSE2.cpp | |
parent | 125c6cdefe3d297319de6cdbf8210c9329abe99a (diff) |
Cleanup of SSE optimization files.
General cleanup of optimization files for x86/SSEx.
Renamed the opts_check_SSE2.cpp file to _x86, since it's not specific
to SSE2. Commented out the ColorRect32 optimization, since it's
disabled anyway, to make it more visible.
Also fixed a lot of indentation, inclusion guards, spelling,
copyright headers, braces, whitespace, and sorting of includes.
Author: henrik.smiding@intel.com
Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
R=reed@google.com, mtklein@google.com, tomhudson@google.com, djsollen@google.com, joakim.landberg@intel.com
Author: henrik.smiding@intel.com
Review URL: https://codereview.chromium.org/264603002
git-svn-id: http://skia.googlecode.com/svn/trunk@14464 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/opts/SkBlitRect_opts_SSE2.cpp')
-rw-r--r-- | src/opts/SkBlitRect_opts_SSE2.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/opts/SkBlitRect_opts_SSE2.cpp b/src/opts/SkBlitRect_opts_SSE2.cpp index 3cb2b9c6d0..d65a313dad 100644 --- a/src/opts/SkBlitRect_opts_SSE2.cpp +++ b/src/opts/SkBlitRect_opts_SSE2.cpp @@ -5,15 +5,14 @@ * found in the LICENSE file. */ +#include <emmintrin.h> #include "SkBlitRect_opts_SSE2.h" #include "SkBlitRow.h" #include "SkColorPriv.h" -#include <emmintrin.h> - -/** Simple blitting of opaque rectangles less than 31 pixels wide: - inlines and merges sections of Color32_SSE2 and sk_memset32_SSE2. -*/ +/* Simple blitting of opaque rectangles less than 31 pixels wide: + * inlines and merges sections of Color32_SSE2 and sk_memset32_SSE2. + */ static void BlitRect32_OpaqueNarrow_SSE2(SkPMColor* SK_RESTRICT destination, int width, int height, size_t rowBytes, uint32_t color) { @@ -42,12 +41,12 @@ static void BlitRect32_OpaqueNarrow_SSE2(SkPMColor* SK_RESTRICT destination, } } -/** - Fast blitting of opaque rectangles at least 31 pixels wide: - inlines and merges sections of Color32_SSE2 and sk_memset32_SSE2. - A 31 pixel rectangle is guaranteed to have at least one - 16-pixel aligned span that can take advantage of mm_store. -*/ +/* + * Fast blitting of opaque rectangles at least 31 pixels wide: + * inlines and merges sections of Color32_SSE2 and sk_memset32_SSE2. + * A 31 pixel rectangle is guaranteed to have at least one + * 16-pixel aligned span that can take advantage of mm_store. + */ static void BlitRect32_OpaqueWide_SSE2(SkPMColor* SK_RESTRICT destination, int width, int height, size_t rowBytes, uint32_t color) { |