MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / from_netfloat

Function from_netfloat

src/input.cpp:96–98  ·  view source on GitHub ↗

* @brief Convert a little-endian netfloat to a native endianness float. * @param f Netfloat value. * @return The native endianness float value. */

Source from the content-addressed store, hash-verified

94 * @return The native endianness float value.
95 */
96 float from_netfloat(netfloat f) {
97 return boost::endian::endian_load<float, sizeof(float), boost::endian::order::little>(f);
98 }
99
100 /**
101 * @brief Convert a little-endian netfloat to a native endianness float and clamps it.

Callers 3

from_clamped_netfloatFunction · 0.85
printFunction · 0.85
passthroughFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected