mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 01:06:46 +08:00
mingw64 fix - guard row_win.cc against mingw build.
The old guard only checked for defined(_M_X64) which is defined by mingw64. Add a test for defined(_MSC_VER) which is defined for clangcl and visual c but not mingw. mingw should use row_gcc.cc for both 32 and 64 bit. R=harryjin@google.com BUG=webm:1252,libyuv:613 TEST=local gcc/clang builds on linux tested and try bots for others. Review URL: https://codereview.chromium.org/2105603002 .
This commit is contained in:
parent
b8ddb5a2a7
commit
2f101fdbda
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1601
|
Version: 1602
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -262,7 +262,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// The following are also available on x64 Visual C.
|
// The following are also available on x64 Visual C.
|
||||||
#if !defined(LIBYUV_DISABLE_X86) && defined (_M_X64) && \
|
#if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && defined(_M_X64) && \
|
||||||
(!defined(__clang__) || defined(__SSSE3__))
|
(!defined(__clang__) || defined(__SSSE3__))
|
||||||
#define HAS_I422ALPHATOARGBROW_SSSE3
|
#define HAS_I422ALPHATOARGBROW_SSSE3
|
||||||
#define HAS_I422TOARGBROW_SSSE3
|
#define HAS_I422TOARGBROW_SSSE3
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1601
|
#define LIBYUV_VERSION 1602
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -10,8 +10,11 @@
|
|||||||
|
|
||||||
#include "libyuv/row.h"
|
#include "libyuv/row.h"
|
||||||
|
|
||||||
#if !defined(LIBYUV_DISABLE_X86) && defined(_M_X64) && \
|
// This module is for Visual C 32/64 bit and clangcl 32 bit
|
||||||
defined(_MSC_VER) && !defined(__clang__)
|
#if !defined(LIBYUV_DISABLE_X86) && defined(_MSC_VER) && \
|
||||||
|
(defined(_M_IX86) || (defined(_M_X64) && !defined(__clang__)))
|
||||||
|
|
||||||
|
#if defined(_M_X64)
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#include <tmmintrin.h> // For _mm_maddubs_epi16
|
#include <tmmintrin.h> // For _mm_maddubs_epi16
|
||||||
#endif
|
#endif
|
||||||
@ -21,10 +24,6 @@ namespace libyuv {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// This module is for Visual C 32/64 bit and clangcl 32 bit
|
|
||||||
#if !defined(LIBYUV_DISABLE_X86) && \
|
|
||||||
(defined(_M_IX86) || (defined(_M_X64) && !defined(__clang__)))
|
|
||||||
|
|
||||||
// 64 bit
|
// 64 bit
|
||||||
#if defined(_M_X64)
|
#if defined(_M_X64)
|
||||||
|
|
||||||
@ -6261,9 +6260,10 @@ void ARGBLumaColorTableRow_SSSE3(const uint8* src_argb, uint8* dst_argb,
|
|||||||
#endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3
|
#endif // HAS_ARGBLUMACOLORTABLEROW_SSSE3
|
||||||
|
|
||||||
#endif // defined(_M_X64)
|
#endif // defined(_M_X64)
|
||||||
#endif // !defined(LIBYUV_DISABLE_X86) && (defined(_M_IX86) || defined(_M_X64))
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
} // namespace libyuv
|
} // namespace libyuv
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif // !defined(LIBYUV_DISABLE_X86) && (defined(_M_IX86) || defined(_M_X64))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user