blob: 020b808bbed2bbaf3e9a9526ddc5483dfbdb895d (
plain) (
tree)
|
|
#include "win2mac.h"
UInt32 DR_SwapFourBytes(UInt32 dw)
{
UInt32 tmp;
tmp = (dw & 0x000000FF);
tmp = ((dw & 0x0000FF00) >> 0x08) | (tmp << 0x08);
tmp = ((dw & 0x00FF0000) >> 0x10) | (tmp << 0x08);
tmp = ((dw & 0xFF000000) >> 0x18) | (tmp << 0x08);
return (tmp);
}
UInt16 DR_SwapTwoBytes(UInt16 w)
{
UInt16 tmp;
tmp = (w & 0x00FF);
tmp = ((w & 0xFF00) >> 0x08) | (tmp << 0x08);
return(tmp);
}
|