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:
@ -22,6 +22,11 @@
|
||||
#define USE_INTRINSICS // use intrinsics when possible
|
||||
#endif
|
||||
|
||||
#define INIT_VECTOR2(v, a, b) do { \
|
||||
v.val[0] = a; \
|
||||
v.val[1] = b; \
|
||||
} while (0)
|
||||
|
||||
// if using intrinsics, this flag avoids some functions that make gcc-4.6.3
|
||||
// crash ("internal compiler error: in immed_double_const, at emit-rtl.").
|
||||
// (probably similar to gcc.gnu.org/bugzilla/show_bug.cgi?id=48183)
|
||||
|
Reference in New Issue
Block a user