Added Forceinline fix on XBOX360 cannot be used with static
This commit is contained in:
parent
ce47b5e87b
commit
855be2fac3
|
@ -139,7 +139,11 @@ FORCEINLINE void memset_u16_le(void* dst, u16 val)
|
|||
#else //no sse2
|
||||
|
||||
template<int NUM>
|
||||
#ifdef _XBOX
|
||||
FORCEINLINE void memset_u16_le(void* dst, u16 val)
|
||||
#else
|
||||
static FORCEINLINE void memset_u16_le(void* dst, u16 val)
|
||||
#endif
|
||||
{
|
||||
for(int i=0;i<NUM;i++)
|
||||
T1WriteWord((u8*)dst,i<<1,val);
|
||||
|
@ -315,7 +319,11 @@ FORCEINLINE void vector_fix2float(float* matrix, const float divisor)
|
|||
}
|
||||
|
||||
template<int NUM>
|
||||
#ifdef _XBOX
|
||||
FORCEINLINE void memset_u8(void* dst, u8 val)
|
||||
#else
|
||||
static FORCEINLINE void memset_u8(void* dst, u8 val)
|
||||
#endif
|
||||
{
|
||||
memset(dst,val,NUM);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue