Skip to content
Snippets Groups Projects
Commit befae492 authored by Monster Iestyn's avatar Monster Iestyn
Browse files

use ATTRINLINE rather than inline to match some of the other functions in this...

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)
parent 2e27b3ea
Branches
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment