some changes related to BspDemo
This commit is contained in:
@@ -458,7 +458,7 @@ int BspLoader::getMachineEndianness()
|
||||
|
||||
short BspLoader::LittleShort (short l)
|
||||
{
|
||||
if (machineEndianness() == BIG_ENDIAN)
|
||||
if (machineEndianness() == BSP_BIG_ENDIAN)
|
||||
{
|
||||
unsigned char b1,b2;
|
||||
|
||||
@@ -473,7 +473,7 @@ short BspLoader::LittleShort (short l)
|
||||
|
||||
short BspLoader::BigShort (short l)
|
||||
{
|
||||
if (machineEndianness() == BIG_ENDIAN)
|
||||
if (machineEndianness() == BSP_BIG_ENDIAN)
|
||||
{
|
||||
return l;
|
||||
}
|
||||
@@ -492,7 +492,7 @@ short BspLoader::BigShort (short l)
|
||||
|
||||
int BspLoader::LittleLong (int l)
|
||||
{
|
||||
if (machineEndianness() == BIG_ENDIAN)
|
||||
if (machineEndianness() == BSP_BIG_ENDIAN)
|
||||
{
|
||||
unsigned char b1,b2,b3,b4;
|
||||
|
||||
@@ -511,7 +511,7 @@ int BspLoader::LittleLong (int l)
|
||||
|
||||
int BspLoader::BigLong (int l)
|
||||
{
|
||||
if (machineEndianness() == BIG_ENDIAN)
|
||||
if (machineEndianness() == BSP_BIG_ENDIAN)
|
||||
{
|
||||
return l;
|
||||
}
|
||||
@@ -531,7 +531,7 @@ int BspLoader::BigLong (int l)
|
||||
|
||||
float BspLoader::LittleFloat (float l)
|
||||
{
|
||||
if (machineEndianness() == BIG_ENDIAN)
|
||||
if (machineEndianness() == BSP_BIG_ENDIAN)
|
||||
{
|
||||
union {unsigned char b[4]; float f;} in, out;
|
||||
|
||||
@@ -550,7 +550,7 @@ float BspLoader::LittleFloat (float l)
|
||||
|
||||
float BspLoader::BigFloat (float l)
|
||||
{
|
||||
if (machineEndianness() == BIG_ENDIAN)
|
||||
if (machineEndianness() == BSP_BIG_ENDIAN)
|
||||
{
|
||||
return l;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user