Build NvCloth for Windows on ARM

This commit is contained in:
2024-05-09 20:25:16 +03:00
parent 90e7d4076b
commit 24c645d8d2
3 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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.