diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2026-02-07 04:43:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-07 04:43:51 -0800 |
| commit | 57cea18076aaf37de164b2ddeafdda4c42bdda80 (patch) | |
| tree | df4573e1c7058cde2d255adf909899c9d337b332 /include/JSystem/JGeometry.h | |
| parent | 434550355b33a95a6d715e820dfc380404105af3 (diff) | |
JParticle debug (#3090)
Diffstat (limited to 'include/JSystem/JGeometry.h')
| -rw-r--r-- | include/JSystem/JGeometry.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/JSystem/JGeometry.h b/include/JSystem/JGeometry.h index 513d5242dd..696d2f60a4 100644 --- a/include/JSystem/JGeometry.h +++ b/include/JSystem/JGeometry.h @@ -286,12 +286,7 @@ struct TVec3<f32> : public Vec { } void scale(__REGISTER f32 sc) { -#if DEBUG - x *= sc; - y *= sc; - z *= sc; -#else -#ifdef __MWERKS__ +#if PLATFORM_GCN && defined(__MWERKS__) __REGISTER f32 z; __REGISTER f32 x_y; __REGISTER f32* dst = &x; @@ -305,12 +300,15 @@ struct TVec3<f32> : public Vec { ps_muls0 zres, z, sc psq_st zres, 8(dst), 1, 0 }; -#endif +#else + x *= sc; + y *= sc; + z *= sc; #endif } void scale(__REGISTER f32 sc, const TVec3<f32>& other) { -#ifdef __MWERKS__ +#if PLATFORM_GCN && defined(__MWERKS__) __REGISTER const f32* src = &other.x; __REGISTER f32 z; __REGISTER f32 x_y; @@ -325,6 +323,10 @@ struct TVec3<f32> : public Vec { ps_muls0 zres, z, sc psq_st zres, 8(dst), 1, 0 }; +#else + x = other.x * sc; + y = other.y * sc; + z = other.z * sc; #endif } |
