fix 'unused' warning. Fixes Issue 770
This commit is contained in:
@@ -284,6 +284,10 @@ static int btNanMask = 0x7F800001;
|
|||||||
#ifndef BT_INFINITY
|
#ifndef BT_INFINITY
|
||||||
static int btInfinityMask = 0x7F800000;
|
static int btInfinityMask = 0x7F800000;
|
||||||
#define BT_INFINITY (*(float*)&btInfinityMask)
|
#define BT_INFINITY (*(float*)&btInfinityMask)
|
||||||
|
inline int btGetInfinityMask()//suppress stupid compiler warning
|
||||||
|
{
|
||||||
|
return btInfinityMask;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//use this, in case there are clashes (such as xnamath.h)
|
//use this, in case there are clashes (such as xnamath.h)
|
||||||
@@ -336,6 +340,10 @@ inline __m128 operator * (const __m128 A, const __m128 B)
|
|||||||
#ifndef BT_INFINITY
|
#ifndef BT_INFINITY
|
||||||
static int btInfinityMask = 0x7F800000;
|
static int btInfinityMask = 0x7F800000;
|
||||||
#define BT_INFINITY (*(float*)&btInfinityMask)
|
#define BT_INFINITY (*(float*)&btInfinityMask)
|
||||||
|
inline int btGetInfinityMask()//suppress stupid compiler warning
|
||||||
|
{
|
||||||
|
return btInfinityMask;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif//BT_USE_NEON
|
#endif//BT_USE_NEON
|
||||||
|
|
||||||
@@ -728,4 +736,5 @@ template <typename T>T* btAlignPointer(T* unalignedPtr, size_t alignment)
|
|||||||
return converter.ptr;
|
return converter.ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif //BT_SCALAR_H
|
#endif //BT_SCALAR_H
|
||||||
|
|||||||
Reference in New Issue
Block a user