|
@@ -294,6 +294,11 @@ typedef union
|
|
} x;
|
|
} x;
|
|
} FP32;
|
|
} FP32;
|
|
|
|
|
|
|
|
+#ifdef _MSC_VER
|
|
|
|
+#pragma warning(push)
|
|
|
|
+#pragma warning(disable:4214)
|
|
|
|
+#endif
|
|
|
|
+
|
|
typedef union
|
|
typedef union
|
|
{
|
|
{
|
|
Uint16 u;
|
|
Uint16 u;
|
|
@@ -305,6 +310,10 @@ typedef union
|
|
} x;
|
|
} x;
|
|
} FP16;
|
|
} FP16;
|
|
|
|
|
|
|
|
+#ifdef _MSC_VER
|
|
|
|
+#pragma warning(pop)
|
|
|
|
+#endif
|
|
|
|
+
|
|
static float half_to_float(Uint16 unValue)
|
|
static float half_to_float(Uint16 unValue)
|
|
{
|
|
{
|
|
static const FP32 magic = { (254 - 15) << 23 };
|
|
static const FP32 magic = { (254 - 15) << 23 };
|