]> granicus.if.org Git - libvpx/commitdiff
vp9_diamond_search_sad_neon: use DECLARE_ALIGNED
authorJames Zern <jzern@google.com>
Wed, 1 Feb 2023 21:27:06 +0000 (13:27 -0800)
committerJames Zern <jzern@google.com>
Wed, 1 Feb 2023 22:50:01 +0000 (14:50 -0800)
rather than the gcc specific __attribute__((aligned())); fixes build
targeting ARM64 windows.

Bug: webm:1788
Change-Id: I2210fc215f44d90c1ce9dee9b54888eb1b78c99e

vp9/encoder/arm/neon/vp9_diamond_search_sad_neon.c

index 33753f77b0a9841905c6242834669b19648214cb..997775a668e15964adc79459738c1868400892cf 100644 (file)
@@ -220,7 +220,7 @@ int vp9_diamond_search_sad_neon(const MACROBLOCK *x,
       // Look up the component cost of the residual motion vector
       {
         uint32_t cost[4];
-        int16_t __attribute__((aligned(16))) rowcol[8];
+        DECLARE_ALIGNED(16, int16_t, rowcol[8]);
         vst1q_s16(rowcol, v_diff_mv_w);
 
         // Note: This is a use case for gather instruction