mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
add SIMD_ALIGNED to unit_test.h
avoids need for row.h for some unittests; R=harryjin@google.com BUG=libyuv:594 TESTED=try bots tested. Review URL: https://codereview.chromium.org/2004313004 .
This commit is contained in:
parent
b6bfacc2e7
commit
60abed3a47
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1589
|
Version: 1590
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -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 1589
|
#define LIBYUV_VERSION 1590
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -22,6 +22,16 @@
|
|||||||
|
|
||||||
#include "libyuv/basic_types.h"
|
#include "libyuv/basic_types.h"
|
||||||
|
|
||||||
|
#ifndef SIMD_ALIGNED
|
||||||
|
#if defined(_MSC_VER) && !defined(__CLR_VER)
|
||||||
|
#define SIMD_ALIGNED(var) __declspec(align(16)) var
|
||||||
|
#elif defined(__GNUC__) && !defined(__pnacl__)
|
||||||
|
#define SIMD_ALIGNED(var) var __attribute__((aligned(16)))
|
||||||
|
#else
|
||||||
|
#define SIMD_ALIGNED(var) var
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
static __inline int Abs(int v) {
|
static __inline int Abs(int v) {
|
||||||
return v >= 0 ? v : -v;
|
return v >= 0 ? v : -v;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user