Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
Decode
Method · 0.85
DirectionUp
Method · 0.85
Direction
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected