We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inline void ArrayQuaternion::Cmov4( ArrayMaskR mask, const ArrayQuaternion &replacement ) { ArrayReal * RESTRICT_ALIAS aChunkBase = &w; const ArrayReal * RESTRICT_ALIAS bChunkBase = &w; aChunkBase[0] = MathlibC::Cmov4( aChunkBase[0], bChunkBase[0], mask ); aChunkBase[1] = MathlibC::Cmov4( aChunkBase[1], bChunkBase[1], mask ); aChunkBase[2] = MathlibC::Cmov4( aChunkBase[2], bChunkBase[2], mask ); aChunkBase[3] = MathlibC::Cmov4( aChunkBase[3], bChunkBase[3], mask ); }
is a no-op, since it just sets the value to itself, regardless of what the mask is.
It should be something like:
inline void ArrayQuaternion::Cmov4( ArrayMaskR mask, const ArrayQuaternion &replacement ) { ArrayReal * RESTRICT_ALIAS aChunkBase = &w; const ArrayReal * RESTRICT_ALIAS bChunkBase = &replacement.w; aChunkBase[0] = MathlibC::Cmov4( aChunkBase[0], bChunkBase[0], mask ); aChunkBase[1] = MathlibC::Cmov4( aChunkBase[1], bChunkBase[1], mask ); aChunkBase[2] = MathlibC::Cmov4( aChunkBase[2], bChunkBase[2], mask ); aChunkBase[3] = MathlibC::Cmov4( aChunkBase[3], bChunkBase[3], mask ); }
The text was updated successfully, but these errors were encountered:
c07d9bf
Thanks for the report and the fix!
Sorry, something went wrong.
No branches or pull requests
System Information
is a no-op, since it just sets the value to itself, regardless of what the mask is.
It should be something like:
The text was updated successfully, but these errors were encountered: