mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
enc_neon: fix building with non-Xcode clang (iOS)
check for __apple_build_version__ to distinguish the two; a version
check could work as Apple bumped Xcode's to 5.x/6.x, but it's unclear
how upstream will deal with their versioning as they go 3.6+, so avoid
it for now.
(cherry picked from commit a3946b8956
)
Change-Id: I67cda67c4f68e262a92d805a63cc1496374be063
This commit is contained in:
parent
d0859d69de
commit
c5ceea4899
@ -1013,7 +1013,8 @@ static int QuantizeBlock(int16_t in[16], int16_t out[16],
|
||||
const int16x8_t out1 = Quantize(in, mtx, 8);
|
||||
uint8x8x4_t shuffles;
|
||||
// vtbl4_u8 is marked unavailable for iOS arm64, use wider versions there.
|
||||
#if defined(__APPLE__) && defined(__aarch64__)
|
||||
#if defined(__APPLE__) && defined(__aarch64__) && \
|
||||
defined(__apple_build_version__)
|
||||
uint8x16x2_t all_out;
|
||||
INIT_VECTOR2(all_out, vreinterpretq_u8_s16(out0), vreinterpretq_u8_s16(out1));
|
||||
INIT_VECTOR4(shuffles,
|
||||
|
Loading…
Reference in New Issue
Block a user