mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
use vectorsize on clangcl
the ScaleFilterCols_SSSE3 function fails at runtime if vectorsize is not used. BUG=libyuv:610,libyuv:605 R=wangcheng@google.com Review URL: https://codereview.chromium.org/2080223007 .
This commit is contained in:
parent
e376b06d6a
commit
24b9fa6671
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1598
|
Version: 1599
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -372,7 +372,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSC_VER) && !defined(__CLR_VER)
|
#if defined(_MSC_VER) && !defined(__CLR_VER) && !defined(__clang__)
|
||||||
#define SIMD_ALIGNED(var) __declspec(align(16)) var
|
#define SIMD_ALIGNED(var) __declspec(align(16)) var
|
||||||
#define SIMD_ALIGNED32(var) __declspec(align(64)) var
|
#define SIMD_ALIGNED32(var) __declspec(align(64)) var
|
||||||
typedef __declspec(align(16)) int16 vec16[8];
|
typedef __declspec(align(16)) int16 vec16[8];
|
||||||
@ -387,7 +387,7 @@ typedef __declspec(align(32)) int8 lvec8[32];
|
|||||||
typedef __declspec(align(32)) uint16 ulvec16[16];
|
typedef __declspec(align(32)) uint16 ulvec16[16];
|
||||||
typedef __declspec(align(32)) uint32 ulvec32[8];
|
typedef __declspec(align(32)) uint32 ulvec32[8];
|
||||||
typedef __declspec(align(32)) uint8 ulvec8[32];
|
typedef __declspec(align(32)) uint8 ulvec8[32];
|
||||||
#elif defined(__GNUC__) && !defined(__pnacl__)
|
#elif !defined(__pnacl__) && (defined(__GNUC__) || defined(__clang__))
|
||||||
// Caveat GCC 4.2 to 4.7 have a known issue using vectors with const.
|
// Caveat GCC 4.2 to 4.7 have a known issue using vectors with const.
|
||||||
#define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
|
#define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
|
||||||
#define SIMD_ALIGNED32(var) var __attribute__((aligned(64)))
|
#define SIMD_ALIGNED32(var) var __attribute__((aligned(64)))
|
||||||
|
|||||||
@ -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 1598
|
#define LIBYUV_VERSION 1599
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user