parent
f86f8e8ed8
commit
c754d6fdfb
15 changed files with 91 additions and 108 deletions
|
@ -205,16 +205,11 @@ qint64 Long64NoSwap (qint64 ll)
|
|||
return ll;
|
||||
}
|
||||
|
||||
typedef union {
|
||||
float f;
|
||||
unsigned int i;
|
||||
} _FloatByteUnion;
|
||||
|
||||
float FloatSwap (const float *f) {
|
||||
_FloatByteUnion out;
|
||||
floatint_t out;
|
||||
|
||||
out.f = *f;
|
||||
out.i = LongSwap(out.i);
|
||||
out.ui = LongSwap(out.ui);
|
||||
|
||||
return out.f;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue