mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 19:12:51 +00:00
Fixed incorrect return value assignment in mathlib UnsignedIntConvertToFltSIMD(const u32x4&). Recompiled mathlib.
(cherry picked from commit d82600fb227b37fe4125b0691067ff776f453550)
This commit is contained in:
parent
e2f7bc3029
commit
f45fa2f46a
4 changed files with 8 additions and 8 deletions
Binary file not shown.
|
@ -2355,10 +2355,10 @@ FORCEINLINE void StoreUnalignedIntSIMD( int32 * RESTRICT pSIMD, const fltx4 & a
|
|||
FORCEINLINE fltx4 UnsignedIntConvertToFltSIMD( const u32x4 &vSrcA )
|
||||
{
|
||||
fltx4 retval;
|
||||
SubFloat( retval, 0 ) = ( (float) SubInt( retval, 0 ) );
|
||||
SubFloat( retval, 1 ) = ( (float) SubInt( retval, 1 ) );
|
||||
SubFloat( retval, 2 ) = ( (float) SubInt( retval, 2 ) );
|
||||
SubFloat( retval, 3 ) = ( (float) SubInt( retval, 3 ) );
|
||||
SubFloat( retval, 0 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[0]));
|
||||
SubFloat( retval, 1 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[1]));
|
||||
SubFloat( retval, 2 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[2]));
|
||||
SubFloat( retval, 3 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[3]));
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
|
@ -2355,10 +2355,10 @@ FORCEINLINE void StoreUnalignedIntSIMD( int32 * RESTRICT pSIMD, const fltx4 & a
|
|||
FORCEINLINE fltx4 UnsignedIntConvertToFltSIMD( const u32x4 &vSrcA )
|
||||
{
|
||||
fltx4 retval;
|
||||
SubFloat( retval, 0 ) = ( (float) SubInt( retval, 0 ) );
|
||||
SubFloat( retval, 1 ) = ( (float) SubInt( retval, 1 ) );
|
||||
SubFloat( retval, 2 ) = ( (float) SubInt( retval, 2 ) );
|
||||
SubFloat( retval, 3 ) = ( (float) SubInt( retval, 3 ) );
|
||||
SubFloat( retval, 0 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[0]));
|
||||
SubFloat( retval, 1 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[1]));
|
||||
SubFloat( retval, 2 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[2]));
|
||||
SubFloat( retval, 3 ) = ( (float) (reinterpret_cast<const uint32 *>(&vSrcA)[3]));
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue