We compare the result of sputrunc alwyas with s32 type so just return it. Well, the real reason is that i'm so tired of that 50 lines warning.

This commit is contained in:
riccardom 2009-05-28 18:10:50 +00:00
parent beecc55eb0
commit f33e81f7c3
1 changed files with 2 additions and 2 deletions

View File

@ -57,8 +57,8 @@ extern SoundInterface_struct *SNDCoreList[];
static FORCEINLINE u32 sputrunc(float f) { return u32floor(f); }
static FORCEINLINE u32 sputrunc(double d) { return u32floor(d); }
static FORCEINLINE s32 sputrunc(float f) { return u32floor(f); }
static FORCEINLINE s32 sputrunc(double d) { return u32floor(d); }
static FORCEINLINE s32 spumuldiv7(s32 val, u8 multiplier) {
assert(multiplier <= 127);
return (multiplier == 127) ? val : ((val * multiplier) >> 7);