use ATTRINLINE rather than inline to match some of the other functions in this file, though I'm told modern compilers ignore inlining info as they actually decide themselves now

(though I could pretend we still support the older ones lol)
This commit is contained in:
Monster Iestyn 2020-03-30 20:25:56 +01:00
parent 2e27b3ea87
commit befae492fe
1 changed files with 2 additions and 2 deletions

View File

@ -39,12 +39,12 @@ typedef INT32 fixed_t;
\brief convert fixed_t into floating number
*/
FUNCMATH FUNCINLINE static inline float FixedToFloat(fixed_t x)
FUNCMATH FUNCINLINE static ATTRINLINE float FixedToFloat(fixed_t x)
{
return x / (float)FRACUNIT;
}
FUNCMATH FUNCINLINE static inline fixed_t FloatToFixed(float f)
FUNCMATH FUNCINLINE static ATTRINLINE fixed_t FloatToFixed(float f)
{
return (fixed_t)(f * FRACUNIT);
}