OLD | NEW |
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_SCALE_ROW_H_ // NOLINT | 11 #ifndef INCLUDE_LIBYUV_SCALE_ROW_H_ // NOLINT |
12 #define INCLUDE_LIBYUV_SCALE_ROW_H_ | 12 #define INCLUDE_LIBYUV_SCALE_ROW_H_ |
13 | 13 |
14 #include "libyuv/basic_types.h" | 14 #include "libyuv/basic_types.h" |
15 #include "libyuv/scale.h" | 15 #include "libyuv/scale.h" |
16 | 16 |
17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
18 namespace libyuv { | 18 namespace libyuv { |
19 extern "C" { | 19 extern "C" { |
20 #endif | 20 #endif |
21 | 21 |
22 #if defined(__pnacl__) || defined(__CLR_VER) || \ | 22 #if defined(__pnacl__) || defined(__CLR_VER) || \ |
23 (defined(__i386__) && !defined(__SSE2__)) | 23 (defined(__i386__) && !defined(__SSE2__)) |
24 #define LIBYUV_DISABLE_X86 | 24 #define LIBYUV_DISABLE_X86 |
25 #endif | 25 #endif |
| 26 // MemorySanitizer does not support assembly code yet. http://crbug.com/344505 |
| 27 #if defined(__has_feature) |
| 28 #if __has_feature(memory_sanitizer) |
| 29 #define LIBYUV_DISABLE_X86 |
| 30 #endif |
| 31 #endif |
26 | 32 |
27 // GCC >= 4.7.0 required for AVX2. | 33 // GCC >= 4.7.0 required for AVX2. |
28 #if defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) | 34 #if defined(__GNUC__) && (defined(__x86_64__) || defined(__i386__)) |
29 #if (__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 7)) | 35 #if (__GNUC__ > 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ >= 7)) |
30 #define GCC_HAS_AVX2 1 | 36 #define GCC_HAS_AVX2 1 |
31 #endif // GNUC >= 4.7 | 37 #endif // GNUC >= 4.7 |
32 #endif // __GNUC__ | 38 #endif // __GNUC__ |
33 | 39 |
34 // clang >= 3.4.0 required for AVX2. | 40 // clang >= 3.4.0 required for AVX2. |
35 #if defined(__clang__) && (defined(__x86_64__) || defined(__i386__)) | 41 #if defined(__clang__) && (defined(__x86_64__) || defined(__i386__)) |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 uint8* dst_ptr, int dst_width); | 494 uint8* dst_ptr, int dst_width); |
489 void ScaleRowDown38_3_Box_DSPR2(const uint8* src_ptr, ptrdiff_t src_stride, | 495 void ScaleRowDown38_3_Box_DSPR2(const uint8* src_ptr, ptrdiff_t src_stride, |
490 uint8* dst_ptr, int dst_width); | 496 uint8* dst_ptr, int dst_width); |
491 | 497 |
492 #ifdef __cplusplus | 498 #ifdef __cplusplus |
493 } // extern "C" | 499 } // extern "C" |
494 } // namespace libyuv | 500 } // namespace libyuv |
495 #endif | 501 #endif |
496 | 502 |
497 #endif // INCLUDE_LIBYUV_SCALE_ROW_H_ NOLINT | 503 #endif // INCLUDE_LIBYUV_SCALE_ROW_H_ NOLINT |
OLD | NEW |