mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-11 03:42:43 +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
2e27b3ea87
commit
befae492fe
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…
Reference in a new issue