add array_xor32 to copy+xor an array of 32 bits values.

This commit is contained in:
Vincent Hanquez 2014-08-01 04:43:18 -07:00
parent c84acf079e
commit 63cd646817

View File

@ -151,6 +151,13 @@ static inline void array_copy32(uint32_t *d, uint32_t *s, uint32_t nb)
}
#endif
#ifndef ARCH_HAS_ARRAY_XOR32
static inline void array_xor32(uint32_t *d, uint32_t *s, uint32_t nb)
{
while (nb--) *d++ ^= *s++;
}
#endif
#ifndef ARCH_HAS_ARRAY_COPY64
static inline void array_copy64(uint64_t *d, uint64_t *s, uint32_t nb)
{