>>670
union byteorder {
unsigned char bytes[4];
float fval;
};

float conv_order_( float* f )
{
union byteorder buf;

buf.fval = *f;

{
unsigned char temp;

temp = buf.bytes[0];
buf.bytes[0] = buf.bytes[3];
buf.bytes[3] = temp;

temp = buf.bytes[1];
buf.bytes[1] = buf.bytes[2];
buf.bytes[2] = temp;
}

return buf.fval;
}