2016-06-19 21:43:09 +00:00
|
|
|
#ifndef _R3DFLOAT_H_
|
|
|
|
#define _R3DFLOAT_H_
|
|
|
|
|
|
|
|
namespace R3DFloat
|
|
|
|
{
|
2017-04-12 15:47:57 +00:00
|
|
|
static const UINT16 Pro16BitMax = 0x7fff;
|
|
|
|
static const float Pro16BitFltMin = 1e-7f; // float min in IEEE
|
2016-11-27 19:30:46 +00:00
|
|
|
|
2016-06-19 21:43:09 +00:00
|
|
|
float GetFloat16(UINT16 f);
|
|
|
|
float GetFloat32(UINT32 f);
|
|
|
|
|
2017-04-12 15:47:57 +00:00
|
|
|
UINT32 ConvertProFloat(UINT32 a1); // return float in hex or integer format
|
2016-06-19 21:43:09 +00:00
|
|
|
UINT32 Convert16BitProFloat(UINT32 a1);
|
2017-04-12 15:47:57 +00:00
|
|
|
float ToFloat(UINT32 a1); // integer float to actual IEEE 754 float
|
2016-06-19 21:43:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|