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

Side by Side Diff: src/opts/SkBlitRow_opts_SSE4.h

Issue 367973005: Disable assembly code in MemorySanitizer builds. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 The Android Open Source Project 2 * Copyright 2014 The Android Open Source Project
3 * 3 *
4 * 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
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkBlitRow_opts_SSE4_DEFINED 8 #ifndef SkBlitRow_opts_SSE4_DEFINED
9 #define SkBlitRow_opts_SSE4_DEFINED 9 #define SkBlitRow_opts_SSE4_DEFINED
10 10
11 #include "SkBlitRow.h" 11 #include "SkBlitRow.h"
12 12
13 /* Check if we are able to build assembly code, GCC/AT&T syntax. 13 /* Check if we are able to build assembly code, GCC/AT&T syntax.
14 * Had problems with LLVM-GCC 4.2. 14 * Had problems with LLVM-GCC 4.2.
15 * MemorySanitizer cannot handle assembly code.
15 */ 16 */
16 #if defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC)) 17 #if (defined(__clang__) || (defined(__GNUC__) && !defined(SK_BUILD_FOR_MAC))) \
18 && !defined(MEMORY_SANITIZER)
17 extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst, 19 extern "C" void S32A_Opaque_BlitRow32_SSE4_asm(SkPMColor* SK_RESTRICT dst,
18 const SkPMColor* SK_RESTRICT src, 20 const SkPMColor* SK_RESTRICT src,
19 int count, U8CPU alpha); 21 int count, U8CPU alpha);
20 22
21 #define SK_ATT_ASM_SUPPORTED 23 #define SK_ATT_ASM_SUPPORTED
22 #endif 24 #endif
23 25
24 #endif 26 #endif
25 27
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698