Added Forceinline fix on XBOX360 cannot be used with static

This commit is contained in:
yoshihiropsp 2010-03-26 15:36:22 +00:00
parent ce47b5e87b
commit 855be2fac3
1 changed files with 8 additions and 0 deletions

View File

@ -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);
}