Worked around GCC's -O3 defining BIG_ENDIAN.
This commit is contained in:
@@ -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; \
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user