MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DecodeFloat16

Function DecodeFloat16

engine/Poseidon/Network/NetworkMsg.cpp:591–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589 saturate(r, -MaxAbsInt16, +MaxAbsInt16);
590 return r;
591}
592
593__forceinline float DecodeFloat16(short x)
594{
595 const float coef = 1.0 / MaxAbsInt16;
596 return x * coef;
597}
598

Callers 3

DecodeMethod · 0.85
DirectionUpMethod · 0.85
DirectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected