mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
4ddb1d170a
commit
8aed1de7de
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue