mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-30 09:35:39 +00:00
17 lines
455 B
C++
17 lines
455 B
C++
#ifndef _R3DFLOAT_H_
|
|
#define _R3DFLOAT_H_
|
|
|
|
namespace R3DFloat
|
|
{
|
|
static const UINT16 Pro16BitMax = 0x7fff;
|
|
static const float Pro16BitFltMin = 1e-7f; // float min in IEEE
|
|
|
|
float GetFloat16(UINT16 f);
|
|
float GetFloat32(UINT32 f);
|
|
|
|
UINT32 ConvertProFloat(UINT32 a1); // return float in hex or integer format
|
|
UINT32 Convert16BitProFloat(UINT32 a1);
|
|
float ToFloat(UINT32 a1); // integer float to actual IEEE 754 float
|
|
}
|
|
|
|
#endif |