#define HTON_I32(x) htonl(x)
inline float __HTON_F32(float x)
{
int i = HTON_I32(*((int *)(&x)));
return (*((float *)(&i)));
}
How to resolve warning dereferencing type-punned pointer will break strict-aliasing rules
in the above code