diff options
author | James Zern <jzern@google.com> | 2023-05-01 21:55:05 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2023-05-02 12:28:50 -0700 |
commit | 0c496a4ff92f6c8c3607bda29f442e254efd28f4 (patch) | |
tree | b17fd07d4ae872b08b6894866a496b6d7bb8c67f /src/dsp/quant.h | |
parent | 8151f388ebb1c48990598418f84b81955ddc5895 (diff) | |
download | libwebp-0c496a4ff92f6c8c3607bda29f442e254efd28f4.tar.gz |
cpu.h: add WEBP_AARCH64
and define it to true for __aarch64__ and Win Arm64 + Visual Studio.
Microsoft's compiler (cl.exe) does not define __aarch64__, but relies on
_M_ARM64 & _M_ARM64EC
Bug: b/277254922
Change-Id: I20e4fa07a4031599db69e3d7ba9050345315ef51
Diffstat (limited to 'src/dsp/quant.h')
-rw-r--r-- | src/dsp/quant.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dsp/quant.h b/src/dsp/quant.h index fc099bf9..bf7734cb 100644 --- a/src/dsp/quant.h +++ b/src/dsp/quant.h @@ -22,7 +22,7 @@ #define IsFlat IsFlat_NEON static uint32_t horizontal_add_uint32x4(const uint32x4_t a) { -#if defined(__aarch64__) +#if WEBP_AARCH64 return vaddvq_u32(a); #else const uint64x2_t b = vpaddlq_u32(a); |