mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
fix some undefined/unspecified behaviours in multiplayer games( may help with #299 )
This commit is contained in:
@@ -1787,14 +1787,14 @@ FORCEINLINE fltx4 LoadAlignedSIMD( const VectorAligned & pSIMD )
|
||||
return SetWToZeroSIMD( LoadAlignedSIMD(pSIMD.Base()) );
|
||||
}
|
||||
|
||||
#ifdef __SANITIZE_ADDRESS__
|
||||
static __attribute__((no_sanitize("address"))) fltx4 LoadUnalignedSIMD( const void *pSIMD )
|
||||
#ifdef USING_ASAN
|
||||
static NO_ASAN fltx4 LoadUnalignedSIMD( const void *pSIMD )
|
||||
{
|
||||
return _mm_loadu_ps( reinterpret_cast<const float *>( pSIMD ) );
|
||||
|
||||
}
|
||||
|
||||
static __attribute__((no_sanitize("address"))) fltx4 LoadUnaligned3SIMD( const void *pSIMD )
|
||||
static NO_ASAN fltx4 LoadUnaligned3SIMD( const void *pSIMD )
|
||||
{
|
||||
return _mm_loadu_ps( reinterpret_cast<const float *>( pSIMD ) );
|
||||
}
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ enum
|
||||
// Don't change this without consulting Kelly or Wedge (sjb).
|
||||
#define ATTN_GUNFIRE 0.27f
|
||||
|
||||
enum soundlevel_t
|
||||
enum soundlevel_t : int
|
||||
{
|
||||
SNDLVL_NONE = 0,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user