mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 08:46:47 +08:00
[AArch64] Fix compilation when SME is not supported
The STREAMING_COMPATIBLE macro is designed to enable use of the __arm_streaming_compatible attribute with the intent that this macro expanded to empty if SME is not supported by the compiler or platform being compiled for, however in reality this macro remained undefined causing compilation to fail. Fix this by defining the macro to empty as originally intended. No-Try: True Change-Id: I8f5a8a606289b7c045fa1cce609f5a6d644891ac Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/6087913 Reviewed-by: Justin Green <greenjustin@google.com> Commit-Queue: Mirko Bonadei <mbonadei@chromium.org> Reviewed-by: Wan-Teh Chang <wtc@google.com>
This commit is contained in:
parent
db5a71c528
commit
45c7107f95
@ -23,6 +23,9 @@ extern "C" {
|
||||
#if !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) && \
|
||||
defined(__aarch64__)
|
||||
#define STREAMING_COMPATIBLE __arm_streaming_compatible
|
||||
#else // defined(LIBYUV_DISABLE_SME) || !defined(CLANG_HAS_SME) ||
|
||||
// !defined(__aarch64__)
|
||||
#define STREAMING_COMPATIBLE
|
||||
#endif // !defined(LIBYUV_DISABLE_SME) && defined(CLANG_HAS_SME) &&
|
||||
// defined(__aarch64__)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user