engine/wii/video.c
// copies four 32-bit colors to texture memory
copies four 32-bit colors to texture memory
copies four 32 - bit colors to texture memory
static inline void memcpy32(void* vdest, void* vsource)
{
	int i;
	u32* source = (u32*)vsource;
	u16* dest = (u16*)vdest;
	u32 color;
	for(i=0; i<4; i++)
	{
		color = *(source+i);
		*(dest+i) = color >> 16; 
		*(dest+i+16) = color; 
	}
}
static inline void memcpy32 ( void * vdest , void * vsource ) { int i ; u32 * source = ( u32 * ) vsource ; u16 * dest = ( u16 * ) vdest ; u32 color ; for ( i = 0 ; i < 4 ; i ++ ) { color = * ( source + i ) ; * ( dest + i ) = color >> 16 ; * ( dest + i + 16 ) = color ; } }
copies four 32-bit colors to texture memory
copies four 32 - bit colors to texture memory
// AR cache line // GB cache line