mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-16 05:49:51 +02:00
neon: add INIT_VECTOR2
used to initialize NxMx2 vector types replaces initialization via '{{ }}' gnu-ism. Change-Id: I4accc305c7dd4c886b63c22e38890b629bffb139
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include <assert.h>
|
||||
#include <arm_neon.h>
|
||||
#include <string.h>
|
||||
#include "./neon.h"
|
||||
#include "./yuv.h"
|
||||
|
||||
#ifdef FANCY_UPSAMPLING
|
||||
@ -61,8 +62,9 @@
|
||||
d = vrhadd_u8(d, diag1); \
|
||||
\
|
||||
{ \
|
||||
const uint8x8x2_t a_b = {{ a, b }}; \
|
||||
const uint8x8x2_t c_d = {{ c, d }}; \
|
||||
uint8x8x2_t a_b, c_d; \
|
||||
INIT_VECTOR2(a_b, a, b); \
|
||||
INIT_VECTOR2(c_d, c, d); \
|
||||
vst2_u8(out, a_b); \
|
||||
vst2_u8(out + 32, c_d); \
|
||||
} \
|
||||
|
Reference in New Issue
Block a user