mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 13:30:06 +00:00
Float utility
This commit is contained in:
parent
711993362c
commit
3fc6837f2a
5 changed files with 132 additions and 3 deletions
14
wxdata/include/scwx/util/float.hpp
Normal file
14
wxdata/include/scwx/util/float.hpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace util
|
||||
{
|
||||
|
||||
float DecodeFloat16(uint16_t hex);
|
||||
float DecodeFloat32(uint16_t msw, uint16_t lsw);
|
||||
|
||||
} // namespace util
|
||||
} // namespace scwx
|
||||
Loading…
Add table
Add a link
Reference in a new issue