|
@@ -12,7 +12,7 @@ subject to the following restrictions:
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+// Modified by Yao Wei Tjong for Urho3D
|
|
|
|
|
|
|
|
#ifndef BT_VECTOR3_H
|
|
#ifndef BT_VECTOR3_H
|
|
|
#define BT_VECTOR3_H
|
|
#define BT_VECTOR3_H
|
|
@@ -1001,10 +1001,10 @@ SIMD_FORCE_INLINE btVector3 btVector3::rotate( const btVector3& wAxis, const btS
|
|
|
SIMD_FORCE_INLINE long btVector3::maxDot( const btVector3 *array, long array_count, btScalar &dotOut ) const
|
|
SIMD_FORCE_INLINE long btVector3::maxDot( const btVector3 *array, long array_count, btScalar &dotOut ) const
|
|
|
{
|
|
{
|
|
|
#if (defined BT_USE_SSE && defined BT_USE_SIMD_VECTOR3 && defined BT_USE_SSE_IN_API) || defined (BT_USE_NEON)
|
|
#if (defined BT_USE_SSE && defined BT_USE_SIMD_VECTOR3 && defined BT_USE_SSE_IN_API) || defined (BT_USE_NEON)
|
|
|
- #if defined _WIN32 || defined (BT_USE_SSE)
|
|
|
|
|
|
|
+ #ifdef BT_USE_SSE // Urho3D - to be consistent with the function return below
|
|
|
const long scalar_cutoff = 10;
|
|
const long scalar_cutoff = 10;
|
|
|
long _maxdot_large( const float *array, const float *vec, unsigned long array_count, float *dotOut );
|
|
long _maxdot_large( const float *array, const float *vec, unsigned long array_count, float *dotOut );
|
|
|
- #elif defined BT_USE_NEON
|
|
|
|
|
|
|
+ #elif BT_USE_NEON
|
|
|
const long scalar_cutoff = 4;
|
|
const long scalar_cutoff = 4;
|
|
|
extern long (*_maxdot_large)( const float *array, const float *vec, unsigned long array_count, float *dotOut );
|
|
extern long (*_maxdot_large)( const float *array, const float *vec, unsigned long array_count, float *dotOut );
|
|
|
#endif
|
|
#endif
|