Skip to content

Commit 305714c

Browse files
committed
Move max_band_vec to first position
1 parent e7faebf commit 305714c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

libvips/conversion/composite.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,17 @@ vips_composite_base_dispose( GObject *gobject )
163163
G_OBJECT_CLASS( vips_composite_base_parent_class )->dispose( gobject );
164164
}
165165

166-
/* Our sequence value. This must be aligned on a 16-byte boundary when
167-
* HAVE_VECTOR_ARITH is defined.
166+
/* Our sequence value.
168167
*/
169168
typedef struct {
169+
#ifdef HAVE_VECTOR_ARITH
170+
/* max_band as a vector, for the RGBA case. This must be
171+
* defined first to ensure that the member is aligned
172+
* on a 16-byte boundary.
173+
*/
174+
v4f max_band_vec;
175+
#endif /*HAVE_VECTOR_ARITH*/
176+
170177
VipsCompositeBase *composite;
171178

172179
/* Full set of input regions, each made on the corresponding input
@@ -193,12 +200,6 @@ typedef struct {
193200
*/
194201
VipsPel **p;
195202

196-
#ifdef HAVE_VECTOR_ARITH
197-
/* max_band as a vector, for the RGBA case.
198-
*/
199-
v4f max_band_vec;
200-
#endif /*HAVE_VECTOR_ARITH*/
201-
202203
} VipsCompositeSequence;
203204

204205
#ifdef HAVE_VECTOR_ARITH

0 commit comments

Comments
 (0)