From d5e67ae50873585ea465472499878bec5f680f17 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Mon, 11 Dec 2006 10:33:35 +0000 Subject: [PATCH] The data is not unaligned, it will be aligned at the boundary natural for its size or larger. (Typically at a sizeof(void*) boundary.) It is misaligned in the sense that it isn't at the 16 byte boundary we require. --- stepmania/src/archutils/Darwin/VectorHelper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepmania/src/archutils/Darwin/VectorHelper.cpp b/stepmania/src/archutils/Darwin/VectorHelper.cpp index f05f023579..d3b921ebba 100644 --- a/stepmania/src/archutils/Darwin/VectorHelper.cpp +++ b/stepmania/src/archutils/Darwin/VectorHelper.cpp @@ -47,7 +47,7 @@ void Vector::FastSoundWrite( int32_t *dest, const int16_t *src, unsigned size, s vSInt32 load1Dest = vec_ld( 0, dest ); vSInt32 store = (vSInt32)(0); - // If dest is unaligned, pull first loop iteration out. + // If dest is misaligned, pull first loop iteration out. if( intptr_t(dest) & 0xF ) { vSInt16 load2Src = vec_ld( 15, src ); @@ -213,7 +213,7 @@ void Vector::FastSoundWrite( int32_t *dest, const int16_t *src, unsigned size, s size -= 8; } - // Store the remainder of the vector, if it was unaligned. + // Store the remainder of the vector, if it was misaligned. if( index < 0 ) { store = vec_perm( store, store, storeMask ); @@ -224,7 +224,7 @@ void Vector::FastSoundWrite( int32_t *dest, const int16_t *src, unsigned size, s } } } - /* If we account for both unaligned dest and src, there is really no way to + /* If we account for both misaligned dest and src, there is really no way to * do this in vector code so do the last at most 7 elements in scalar code. */ while( size-- ) *(dest++) += *(src++) * volume;