Worked around GCC's -O3 defining BIG_ENDIAN.

This commit is contained in:
n-a-c-h
2005-03-28 21:55:23 +00:00
parent d76cbf9af1
commit 2716e509da

View File

@@ -178,15 +178,15 @@ static int32 DSP4_READ_DWORD()
#define DSP4_WRITE_WORD( d ) \ #define DSP4_WRITE_WORD( d ) \
{ WRITE_WORD( DSP4.output + DSP4.out_count, ( d ) ); DSP4.out_count += 2; } { WRITE_WORD( DSP4.output + DSP4.out_count, ( d ) ); DSP4.out_count += 2; }
#ifndef BIG_ENDIAN #ifndef MSB_FIRST
#define DSP4_WRITE_16_WORD( d ) \ #define DSP4_WRITE_16_WORD( d ) \
{ memcpy(DSP4.output + DSP4.out_count, ( d ), 32); DSP4.out_count += 32; } { memcpy(DSP4.output + DSP4.out_count, ( d ), 32); DSP4.out_count += 32; }
#else #else
#define DSP4_WRITE_16_WORD( d ) \ #define DSP4_WRITE_16_WORD( d ) \
{ int16 i = 16; \ { int16 *p = ( d ); \
while (i--) \ for (; p != ( d )+16; p++) \
{ \ { \
WRITE_WORD( DSP4.output + DSP4.out_count, ( d ) ); \ WRITE_WORD( DSP4.output + DSP4.out_count, *p ); \
} \ } \
DSP4.out_count += 32; \ DSP4.out_count += 32; \
} }