Build NvCloth for Windows on ARM
This commit is contained in:
2
Source/ThirdParty/NvCloth/ps/PsMathUtils.h
vendored
2
Source/ThirdParty/NvCloth/ps/PsMathUtils.h
vendored
@@ -313,7 +313,7 @@ PX_FORCE_INLINE physx::PxI32 rand(const physx::PxI32 a, const physx::PxI32 b)
|
||||
*/
|
||||
PX_FORCE_INLINE physx::PxF32 rand(const physx::PxF32 a, const physx::PxF32 b)
|
||||
{
|
||||
return a + (b - a) * ::rand() / RAND_MAX;
|
||||
return a + (b - a) * ::rand() / (physx::PxF32)RAND_MAX;
|
||||
}
|
||||
|
||||
//! \brief return angle between two vectors in radians
|
||||
|
||||
@@ -118,7 +118,7 @@ PX_FORCE_INLINE uint32_t PxCountLeadingZeros(uint32_t v)
|
||||
/*!
|
||||
Prefetch aligned cache size around \c ptr+offset.
|
||||
*/
|
||||
#if !PX_ARM
|
||||
#if !PX_ARM && !PX_A64
|
||||
PX_FORCE_INLINE void PxPrefetchLine(const void* ptr, uint32_t offset = 0)
|
||||
{
|
||||
// cache line on X86/X64 is 64-bytes so a 128-byte prefetch would require 2 prefetches.
|
||||
|
||||
Reference in New Issue
Block a user