diff options
| author | sschirm <[email protected]> | 2017-02-27 16:40:12 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2017-03-01 18:04:26 +0100 |
| commit | 7840347c32755e94a807f978f1cbb558717ac8cf (patch) | |
| tree | 295cd3ca93a45f8fcc43cf3cbf3887c0e0c5526b /PxShared/src/foundation/include/PsVecMathAoSScalarInline.h | |
| parent | Pre-release comments marking end of beta. (diff) | |
| download | physx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.tar.xz physx-3.4-7840347c32755e94a807f978f1cbb558717ac8cf.zip | |
PhysX 3.4, APEX 1.4 final release @21757769v3.4.0-rc-2
Diffstat (limited to 'PxShared/src/foundation/include/PsVecMathAoSScalarInline.h')
| -rw-r--r-- | PxShared/src/foundation/include/PsVecMathAoSScalarInline.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/PxShared/src/foundation/include/PsVecMathAoSScalarInline.h b/PxShared/src/foundation/include/PsVecMathAoSScalarInline.h index 854190e7..00e179ab 100644 --- a/PxShared/src/foundation/include/PsVecMathAoSScalarInline.h +++ b/PxShared/src/foundation/include/PsVecMathAoSScalarInline.h @@ -479,7 +479,7 @@ PX_FORCE_INLINE PxU32 FAllEq(const FloatV a, const FloatV b) PX_FORCE_INLINE FloatV FRound(const FloatV a) { - return floor(a.x + 0.5f); + return floorf(a.x + 0.5f); } PX_FORCE_INLINE FloatV FSin(const FloatV a) @@ -816,7 +816,7 @@ PX_FORCE_INLINE PxU32 V3AllEq(const Vec3V a, const Vec3V b) PX_FORCE_INLINE Vec3V V3Round(const Vec3V a) { - return Vec3V(floor(a.x + 0.5f), floor(a.y + 0.5f), floor(a.z + 0.5f)); + return Vec3V(floorf(a.x + 0.5f), floorf(a.y + 0.5f), floorf(a.z + 0.5f)); } PX_FORCE_INLINE Vec3V V3Sin(const Vec3V a) @@ -1271,7 +1271,7 @@ PX_FORCE_INLINE Vec4V V4Clamp(const Vec4V a, const Vec4V minV, const Vec4V maxV) PX_FORCE_INLINE Vec4V V4Round(const Vec4V a) { - return Vec4V(floor(a.x + 0.5f), floor(a.y + 0.5f), floor(a.z + 0.5f), floor(a.w + 0.5f)); + return Vec4V(floorf(a.x + 0.5f), floorf(a.y + 0.5f), floorf(a.z + 0.5f), floorf(a.w + 0.5f)); } PX_FORCE_INLINE Vec4V V4Sin(const Vec4V a) @@ -1479,7 +1479,7 @@ PX_FORCE_INLINE BoolV BOr(const BoolV a, const BoolV b) PX_FORCE_INLINE PxU32 BAllEq(const BoolV a, const BoolV b) { - return (a.ux == b.ux && a.uy == b.uy && a.uz == b.uz && a.uw == b.uw ? TRUE_TO_U32 : FALSE_TO_U32); + return (a.ux == b.ux && a.uy == b.uy && a.uz == b.uz && a.uw == b.uw ? 1 : 0); } PX_FORCE_INLINE PxU32 BAllEqTTTT(const BoolV a) |