Don't need float to u32 and vice versa functions
This commit is contained in:
parent
2759834178
commit
5d52b7a0af
|
@ -312,25 +312,6 @@ inline double u64_to_double(u64 u) {
|
||||||
return fuxor.b;
|
return fuxor.b;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline u32 float_to_u32(float f) {
|
|
||||||
union {
|
|
||||||
u32 a;
|
|
||||||
float b;
|
|
||||||
} fuxor;
|
|
||||||
fuxor.b = f;
|
|
||||||
return fuxor.a;
|
|
||||||
}
|
|
||||||
|
|
||||||
inline float u32_to_float(u32 u) {
|
|
||||||
union {
|
|
||||||
u32 a;
|
|
||||||
float b;
|
|
||||||
} fuxor;
|
|
||||||
fuxor.a = u;
|
|
||||||
return fuxor.b;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
///stores a 32bit value into the provided byte array in guaranteed little endian form
|
///stores a 32bit value into the provided byte array in guaranteed little endian form
|
||||||
inline void en32lsb(u8 *buf, u32 morp)
|
inline void en32lsb(u8 *buf, u32 morp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue