fix more warnings, implement missing X11 function for dynamic loading

This commit is contained in:
Erwin Coumans
2014-08-21 17:27:14 -07:00
parent 60ab931dbd
commit 37aa4dc4f8
4 changed files with 28 additions and 13 deletions

View File

@@ -343,12 +343,23 @@ inline __m128 operator * (const __m128 A, const __m128 B)
#else//BT_USE_NEON
#ifndef BT_INFINITY
static int btInfinityMask = 0x7F800000;
#define BT_INFINITY (*(float*)&btInfinityMask)
inline int btGetInfinityMask()//suppress stupid compiler warning
{
return btInfinityMask;
}
struct btInfMaskConverter
{
union {
float mask;
int intmask;
};
btInfMaskConverter(int mask=0x7F800000)
:intmask(mask)
{
}
};
static btInfMaskConverter btInfinityMask = 0x7F800000;
#define BT_INFINITY (btInfinityMask.mask)
inline int btGetInfinityMask()//suppress stupid compiler warning
{
return btInfinityMask.mask;
}
#endif
#endif//BT_USE_NEON