diff options
author | Frank Barchard <fbarchard@google.com> | 2017-11-07 18:46:33 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2017-11-08 19:55:14 +0000 |
commit | 68f852d835c5da218080f1e04256b0fbc6c21e9c (patch) | |
tree | 4d8353a91a489535b55546b61a2bd372b4942ff9 /include/libyuv/scale_row.h | |
parent | d997ac287d094e534e2846f98d375484f02708b7 (diff) | |
download | libyuv-68f852d835c5da218080f1e04256b0fbc6c21e9c.tar.gz |
Remove DISABLE_CLANG_MSA
cleanup to remove ifdefs around functions affected by
a clang bug.
gn gen out/Release "--args=is_debug=false target_os=\"android\" target_cpu=\"mips64el\" mips_arch_variant=\"r6\" mips_use_msa=true is_component_build=true is_clang=true"
ninja -v -C out/Release libyuv_unittest
Bug: libyuv:634
Test: build for mips with clang
Change-Id: I278b368dbb2fe89082240e280267d0a27a214c78
Reviewed-on: https://chromium-review.googlesource.com/757980
Reviewed-by: Frank Barchard <fbarchard@google.com>
Commit-Queue: Frank Barchard <fbarchard@google.com>
Diffstat (limited to 'include/libyuv/scale_row.h')
-rw-r--r-- | include/libyuv/scale_row.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/include/libyuv/scale_row.h b/include/libyuv/scale_row.h index ebafac4f..534898cd 100644 --- a/include/libyuv/scale_row.h +++ b/include/libyuv/scale_row.h @@ -50,13 +50,6 @@ extern "C" { #define VISUALC_HAS_AVX2 1 #endif // VisualStudio >= 2012 -// clang 6 mips issue https://bugs.chromium.org/p/libyuv/issues/detail?id=715 -// broken in clang version 6.0.0 (trunk 308728) -// fixed in clang version 6.0.0 (trunk 310694) -#if defined(__clang__) -// #define DISABLE_CLANG_MSA 1 -#endif - // The following are available on all x86 platforms: #if !defined(LIBYUV_DISABLE_X86) && \ (defined(_M_IX86) || defined(__x86_64__) || defined(__i386__)) @@ -112,19 +105,16 @@ extern "C" { #endif #if !defined(LIBYUV_DISABLE_MSA) && defined(__mips_msa) -#define HAS_SCALEARGBROWDOWN2_MSA -#define HAS_SCALEROWDOWN2_MSA -#define HAS_SCALEROWDOWN4_MSA #define HAS_SCALEADDROW_MSA #define HAS_SCALEARGBCOLS_MSA -#define HAS_SCALEROWDOWN34_MSA - -#ifndef DISABLE_CLANG_MSA +#define HAS_SCALEARGBFILTERCOLS_MSA +#define HAS_SCALEARGBROWDOWN2_MSA #define HAS_SCALEARGBROWDOWNEVEN_MSA -#define HAS_SCALEROWDOWN38_MSA #define HAS_SCALEFILTERCOLS_MSA -#define HAS_SCALEARGBFILTERCOLS_MSA -#endif +#define HAS_SCALEROWDOWN2_MSA +#define HAS_SCALEROWDOWN34_MSA +#define HAS_SCALEROWDOWN38_MSA +#define HAS_SCALEROWDOWN4_MSA #endif // Scale ARGB vertically with bilinear interpolation. |