OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 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 |
(...skipping 23 matching lines...) Expand all Loading... |
34 #endif | 34 #endif |
35 | 35 |
36 #define free_aligned_buffer_64(var) \ | 36 #define free_aligned_buffer_64(var) \ |
37 free(var##_mem); \ | 37 free(var##_mem); \ |
38 var = 0 | 38 var = 0 |
39 | 39 |
40 #if defined(__pnacl__) || defined(__CLR_VER) || \ | 40 #if defined(__pnacl__) || defined(__CLR_VER) || \ |
41 (defined(__i386__) && !defined(__SSE2__)) | 41 (defined(__i386__) && !defined(__SSE2__)) |
42 #define LIBYUV_DISABLE_X86 | 42 #define LIBYUV_DISABLE_X86 |
43 #endif | 43 #endif |
| 44 // MemorySanitizer does not support assembly code yet. http://crbug.com/344505 |
| 45 #if defined(__has_feature) |
| 46 #if __has_feature(memory_sanitizer) |
| 47 #define LIBYUV_DISABLE_X86 |
| 48 #endif |
| 49 #endif |
44 // True if compiling for SSSE3 as a requirement. | 50 // True if compiling for SSSE3 as a requirement. |
45 #if defined(__SSSE3__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 3)) | 51 #if defined(__SSSE3__) || (defined(_M_IX86_FP) && (_M_IX86_FP >= 3)) |
46 #define LIBYUV_SSSE3_ONLY | 52 #define LIBYUV_SSSE3_ONLY |
47 #endif | 53 #endif |
48 | 54 |
49 #if defined(__native_client__) | 55 #if defined(__native_client__) |
50 #define LIBYUV_DISABLE_NEON | 56 #define LIBYUV_DISABLE_NEON |
51 #endif | 57 #endif |
52 // clang >= 3.5.0 required for Arm64. | 58 // clang >= 3.5.0 required for Arm64. |
53 #if defined(__clang__) && defined(__aarch64__) && !defined(LIBYUV_DISABLE_NEON) | 59 #if defined(__clang__) && defined(__aarch64__) && !defined(LIBYUV_DISABLE_NEON) |
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1914 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, | 1920 void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb, |
1915 int width, | 1921 int width, |
1916 const uint8* luma, uint32 lumacoeff); | 1922 const uint8* luma, uint32 lumacoeff); |
1917 | 1923 |
1918 #ifdef __cplusplus | 1924 #ifdef __cplusplus |
1919 } // extern "C" | 1925 } // extern "C" |
1920 } // namespace libyuv | 1926 } // namespace libyuv |
1921 #endif | 1927 #endif |
1922 | 1928 |
1923 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT | 1929 #endif // INCLUDE_LIBYUV_ROW_H_ NOLINT |
OLD | NEW |