Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: src/opts/SkUtils_opts_SSE2.cpp

Issue 264603002: Cleanup of SSE optimization files. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Added chromium sync patch Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/opts/SkUtils_opts_SSE2.h ('k') | src/opts/SkXfermode_opts_SSE2.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1
2 /* 1 /*
3 * Copyright 2009 The Android Open Source Project 2 * Copyright 2009 The Android Open Source Project
4 * 3 *
5 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9
10 #include <emmintrin.h> 8 #include <emmintrin.h>
11 #include "SkUtils_opts_SSE2.h" 9 #include "SkUtils_opts_SSE2.h"
12 10
13 void sk_memset16_SSE2(uint16_t *dst, uint16_t value, int count) 11 void sk_memset16_SSE2(uint16_t *dst, uint16_t value, int count)
14 { 12 {
15 SkASSERT(dst != NULL && count >= 0); 13 SkASSERT(dst != NULL && count >= 0);
16 14
17 // dst must be 2-byte aligned. 15 // dst must be 2-byte aligned.
18 SkASSERT((((size_t) dst) & 0x01) == 0); 16 SkASSERT((((size_t) dst) & 0x01) == 0);
19 17
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 d += 4; 60 d += 4;
63 count -= 16; 61 count -= 16;
64 } 62 }
65 dst = reinterpret_cast<uint32_t*>(d); 63 dst = reinterpret_cast<uint32_t*>(d);
66 } 64 }
67 while (count > 0) { 65 while (count > 0) {
68 *dst++ = value; 66 *dst++ = value;
69 --count; 67 --count;
70 } 68 }
71 } 69 }
OLDNEW
« no previous file with comments | « src/opts/SkUtils_opts_SSE2.h ('k') | src/opts/SkXfermode_opts_SSE2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698