Skip to content
Snippets Groups Projects
Commit faa3073b authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Clear Vector4a using _mm_setzero_ps(); as that optimizes out to a nearly free...

Clear Vector4a using _mm_setzero_ps(); as that optimizes out to a nearly free instruction on modern processors vs fetching a zero array from memory
parent 7168a11a
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ inline void LLVector4a::set(F32 x, F32 y, F32 z, F32 w) ...@@ -115,7 +115,7 @@ inline void LLVector4a::set(F32 x, F32 y, F32 z, F32 w)
// Set to all zeros // Set to all zeros
inline void LLVector4a::clear() inline void LLVector4a::clear()
{ {
mQ = LLVector4a::getZero().mQ; mQ = _mm_setzero_ps();
} }
inline void LLVector4a::splat(const F32 x) inline void LLVector4a::splat(const F32 x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment