- Replaced the use of autoconf's WORDS_BIGENDIAN with __BIG_ENDIAN__, since
latter comes predefined by GCC. SVN r1779 (trunk)
This commit is contained in:
parent
75920f2ed0
commit
3f003e06db
15 changed files with 22 additions and 28 deletions
|
|
@ -360,7 +360,7 @@ static void Scale8 (BYTE *src, int srcpitch,
|
|||
{
|
||||
DWORD work;
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#ifdef __BIG_ENDIAN__
|
||||
work = src[xf >> FRACBITS] << 24; xf += xstep;
|
||||
work |= src[xf >> FRACBITS] << 16; xf += xstep;
|
||||
work |= src[xf >> FRACBITS] << 8; xf += xstep;
|
||||
|
|
@ -416,7 +416,7 @@ static void Convert8 (BYTE *src, int srcpitch,
|
|||
for (savedx = x, x >>= 2; x != 0; x--)
|
||||
{
|
||||
*(DWORD *)dest =
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#ifdef __BIG_ENDIAN__
|
||||
(GPfxPal.Pal8[src[0]] << 24) |
|
||||
(GPfxPal.Pal8[src[1]] << 16) |
|
||||
(GPfxPal.Pal8[src[2]] << 8) |
|
||||
|
|
@ -454,7 +454,7 @@ static void Convert8 (BYTE *src, int srcpitch,
|
|||
{
|
||||
DWORD work;
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#ifdef __BIG_ENDIAN__
|
||||
work = GPfxPal.Pal8[src[xf >> FRACBITS]] << 24; xf += xstep;
|
||||
work |= GPfxPal.Pal8[src[xf >> FRACBITS]] << 16; xf += xstep;
|
||||
work |= GPfxPal.Pal8[src[xf >> FRACBITS]] << 8; xf += xstep;
|
||||
|
|
@ -510,7 +510,7 @@ static void Convert16 (BYTE *src, int srcpitch,
|
|||
for (savedx = x, x >>= 1; x != 0; x--)
|
||||
{
|
||||
*(DWORD *)dest =
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#ifdef __BIG_ENDIAN__
|
||||
(GPfxPal.Pal16[src[0]] << 16) |
|
||||
(GPfxPal.Pal16[src[1]]);
|
||||
#else
|
||||
|
|
@ -544,7 +544,7 @@ static void Convert16 (BYTE *src, int srcpitch,
|
|||
{
|
||||
DWORD work;
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#ifdef __BIG_ENDIAN__
|
||||
work = GPfxPal.Pal16[src[xf >> FRACBITS]] << 16; xf += xstep;
|
||||
work |= GPfxPal.Pal16[src[xf >> FRACBITS]]; xf += xstep;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue