fix(Build): Fix ssemath for non gcc compilers.

fix(Vscript): Move default parameter to header.
This commit is contained in:
tupoy-ya 2024-12-30 18:41:36 +05:00
parent d412f097a9
commit dab5ba26e4
3 changed files with 29 additions and 2 deletions

View File

@ -3140,4 +3140,31 @@ FORCEINLINE int BoxOnPlaneSideSIMD( const fltx4& emins, const fltx4& emaxs, cons
return sides[0];
}
// Some convenience operator overloads, which are just aliasing the functions above.
// Unneccessary on 360, as you already have them from xboxmath.h
// Componentwise add
#ifndef COMPILER_GCC
FORCEINLINE fltx4 operator+=( fltx4 &a, FLTX4 b )
{
a = AddSIMD( a, b );
return a;
}
FORCEINLINE fltx4 operator-=( fltx4 &a, FLTX4 b )
{
a = SubSIMD( a, b );
return a;
}
FORCEINLINE fltx4 operator*=( fltx4 &a, FLTX4 b )
{
a = MulSIMD( a, b );
return a;
}
#endif
#endif // _ssemath_h

View File

@ -330,7 +330,7 @@ void CScriptKeyValues::ScriptSetBool( bool bValue )
// constructors
CScriptKeyValues::CScriptKeyValues( KeyValues *pKeyValues = NULL )
CScriptKeyValues::CScriptKeyValues( KeyValues *pKeyValues )
{
if (pKeyValues == NULL)
{

View File

@ -20,7 +20,7 @@
class CScriptKeyValues
{
public:
CScriptKeyValues( KeyValues *pKeyValues );
CScriptKeyValues( KeyValues *pKeyValues = NULL );
~CScriptKeyValues( );
HSCRIPT ScriptFindKey( const char *pszName );