whitespace

This commit is contained in:
Jeff Teunissen 2000-12-02 06:17:47 +00:00
parent 2f02dffe41
commit 19dd0f19dd

View file

@ -31,6 +31,7 @@
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include <config.h> # include <config.h>
#endif #endif
#include <ctype.h> #include <ctype.h>
#include <qtypes.h> #include <qtypes.h>
@ -50,7 +51,8 @@ int (*LittleLong) (int l);
float (*BigFloat) (float l); float (*BigFloat) (float l);
float (*LittleFloat) (float l); float (*LittleFloat) (float l);
short ShortSwap (short l) short
ShortSwap (short l)
{ {
byte b1, b2; byte b1, b2;
@ -60,12 +62,14 @@ short ShortSwap (short l)
return (b1 << 8) + b2; return (b1 << 8) + b2;
} }
short ShortNoSwap (short l) short
ShortNoSwap (short l)
{ {
return l; return l;
} }
int LongSwap (int l) int
LongSwap (int l)
{ {
byte b1, b2, b3, b4; byte b1, b2, b3, b4;
@ -77,15 +81,16 @@ int LongSwap (int l)
return ((int) b1 << 24) + ((int) b2 << 16) + ((int) b3 << 8) + b4; return ((int) b1 << 24) + ((int) b2 << 16) + ((int) b3 << 8) + b4;
} }
int LongNoSwap (int l) int
LongNoSwap (int l)
{ {
return l; return l;
} }
float FloatSwap (float f) float
{ FloatSwap (float f)
union
{ {
union {
float f; float f;
byte b[4]; byte b[4];
} dat1, dat2; } dat1, dat2;
@ -99,7 +104,8 @@ float FloatSwap (float f)
return dat2.f; return dat2.f;
} }
float FloatNoSwap (float f) float
FloatNoSwap (float f)
{ {
return f; return f;
} }