|
|
|
@ -755,6 +755,7 @@ typedef y_simd256 yc_int32;
|
|
|
|
|
#define y_MEMCPY_INC(n) \
|
|
|
|
|
do \
|
|
|
|
|
{ \
|
|
|
|
|
y_assert(yc_alignment_matches(s, yc_int##n), "Invalid alignment"); \
|
|
|
|
|
*((yc_int##n*) (void*) d) = *((const yc_int##n*) (const void*) s); \
|
|
|
|
|
d += n; \
|
|
|
|
|
s += n; \
|
|
|
|
@ -1347,6 +1348,9 @@ simple:
|
|
|
|
|
y_assert(n <= old_n, "n wrapped around; this is a bug");
|
|
|
|
|
#endif // YC_DEBUG_CODE
|
|
|
|
|
|
|
|
|
|
y_assert(yc_alignment_matches(s, yc_int16), "Invalid alignment");
|
|
|
|
|
y_assert(yc_alignment_matches(d, yc_int16), "Invalid alignment");
|
|
|
|
|
|
|
|
|
|
// The cast to void gets rid of cast alignment warnings.
|
|
|
|
|
d16 = (yc_int16*) (void*) d;
|
|
|
|
|
s16 = (const yc_int16*) (const void*) s;
|
|
|
|
@ -1529,6 +1533,9 @@ simple:
|
|
|
|
|
y_assert(n <= old_n, "n wrapped around; this is a bug");
|
|
|
|
|
#endif // YC_DEBUG_CODE
|
|
|
|
|
|
|
|
|
|
y_assert(yc_alignment_matches(s, yc_int8), "Invalid alignment");
|
|
|
|
|
y_assert(yc_alignment_matches(d, yc_int8), "Invalid alignment");
|
|
|
|
|
|
|
|
|
|
// The cast to void gets rid of cast alignment warnings.
|
|
|
|
|
d8 = (yc_int8*) (void*) d;
|
|
|
|
|
s8 = (const yc_int8*) (const void*) s;
|
|
|
|
@ -1640,6 +1647,9 @@ simple:
|
|
|
|
|
y_assert(n <= old_n, "n wrapped around; this is a bug");
|
|
|
|
|
#endif // YC_DEBUG_CODE
|
|
|
|
|
|
|
|
|
|
y_assert(yc_alignment_matches(s, yc_int4), "Invalid alignment");
|
|
|
|
|
y_assert(yc_alignment_matches(d, yc_int4), "Invalid alignment");
|
|
|
|
|
|
|
|
|
|
// The cast to void gets rid of cast alignment warnings.
|
|
|
|
|
d4 = (yc_int4*) (void*) d;
|
|
|
|
|
s4 = (const yc_int4*) (const void*) s;
|
|
|
|
@ -1701,6 +1711,9 @@ simple:
|
|
|
|
|
y_assert(n <= old_n, "n wrapped around; this is a bug");
|
|
|
|
|
#endif // YC_DEBUG_CODE
|
|
|
|
|
|
|
|
|
|
y_assert(yc_alignment_matches(s, yc_int2), "Invalid alignment");
|
|
|
|
|
y_assert(yc_alignment_matches(d, yc_int2), "Invalid alignment");
|
|
|
|
|
|
|
|
|
|
// The cast to void gets rid of cast alignment warnings.
|
|
|
|
|
d2 = (yc_int2*) (void*) d;
|
|
|
|
|
s2 = (const yc_int2*) (const void*) s;
|
|
|
|
|