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

Side by Side Diff: include/libyuv/rotate_row.h

Issue 1805683003: disable assembly in header for msan=1 (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 /* 1 /*
2 * Copyright 2013 The LibYuv Project Authors. All rights reserved. 2 * Copyright 2013 The LibYuv Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef INCLUDE_LIBYUV_ROTATE_ROW_H_ // NOLINT 11 #ifndef INCLUDE_LIBYUV_ROTATE_ROW_H_ // NOLINT
12 #define INCLUDE_LIBYUV_ROTATE_ROW_H_ 12 #define INCLUDE_LIBYUV_ROTATE_ROW_H_
13 13
14 #include "libyuv/basic_types.h" 14 #include "libyuv/basic_types.h"
15 15
16 #ifdef __cplusplus 16 #ifdef __cplusplus
17 namespace libyuv { 17 namespace libyuv {
18 extern "C" { 18 extern "C" {
19 #endif 19 #endif
20 20
21 #if defined(__pnacl__) || defined(__CLR_VER) || \ 21 #if defined(__pnacl__) || defined(__CLR_VER) || \
22 (defined(__i386__) && !defined(__SSE2__)) 22 (defined(__i386__) && !defined(__SSE2__))
23 #define LIBYUV_DISABLE_X86 23 #define LIBYUV_DISABLE_X86
24 #endif 24 #endif
25 25 // MemorySanitizer does not support assembly code yet. http://crbug.com/344505
26 #if defined(__has_feature)
27 #if __has_feature(memory_sanitizer)
28 #define LIBYUV_DISABLE_X86
29 #endif
30 #endif
26 // The following are available for Visual C and clangcl 32 bit: 31 // The following are available for Visual C and clangcl 32 bit:
27 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86) 32 #if !defined(LIBYUV_DISABLE_X86) && defined(_M_IX86)
28 #define HAS_TRANSPOSEWX8_SSSE3 33 #define HAS_TRANSPOSEWX8_SSSE3
29 #define HAS_TRANSPOSEUVWX8_SSE2 34 #define HAS_TRANSPOSEUVWX8_SSE2
30 #endif 35 #endif
31 36
32 // The following are available for GCC 32 or 64 bit but not NaCL for 64 bit: 37 // The following are available for GCC 32 or 64 bit but not NaCL for 64 bit:
33 #if !defined(LIBYUV_DISABLE_X86) && \ 38 #if !defined(LIBYUV_DISABLE_X86) && \
34 (defined(__i386__) || (defined(__x86_64__) && !defined(__native_client__))) 39 (defined(__i386__) || (defined(__x86_64__) && !defined(__native_client__)))
35 #define HAS_TRANSPOSEWX8_SSSE3 40 #define HAS_TRANSPOSEWX8_SSSE3
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void TransposeUVWx8_Any_DSPR2(const uint8* src, int src_stride, 112 void TransposeUVWx8_Any_DSPR2(const uint8* src, int src_stride,
108 uint8* dst_a, int dst_stride_a, 113 uint8* dst_a, int dst_stride_a,
109 uint8* dst_b, int dst_stride_b, int width); 114 uint8* dst_b, int dst_stride_b, int width);
110 115
111 #ifdef __cplusplus 116 #ifdef __cplusplus
112 } // extern "C" 117 } // extern "C"
113 } // namespace libyuv 118 } // namespace libyuv
114 #endif 119 #endif
115 120
116 #endif // INCLUDE_LIBYUV_ROTATE_ROW_H_ NOLINT 121 #endif // INCLUDE_LIBYUV_ROTATE_ROW_H_ NOLINT
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698