… | |
… | |
1177 | IEEE compliant, of course at a speed and code size penalty, and of course |
1177 | IEEE compliant, of course at a speed and code size penalty, and of course |
1178 | also within reasonable limits (it tries to convert NaNs, infinities and |
1178 | also within reasonable limits (it tries to convert NaNs, infinities and |
1179 | denormals, but will likely convert negative zero to positive zero). |
1179 | denormals, but will likely convert negative zero to positive zero). |
1180 | |
1180 | |
1181 | On all modern platforms (where C<ECB_STDFP> is true), the compiler should |
1181 | On all modern platforms (where C<ECB_STDFP> is true), the compiler should |
1182 | be able to optimise away this function completely. |
1182 | be able to completely optimise away the 32 and 64 bit functions. |
1183 | |
1183 | |
1184 | These functions can be helpful when serialising floats to the network - you |
1184 | These functions can be helpful when serialising floats to the network - you |
1185 | can serialise the return value like a normal uint16_t/uint32_t/uint64_t. |
1185 | can serialise the return value like a normal uint16_t/uint32_t/uint64_t. |
1186 | |
1186 | |
1187 | Another use for these functions is to manipulate floating point values |
1187 | Another use for these functions is to manipulate floating point values |