[Include] float2.inc - Additional operators for floats
#2

Updated a little bit:
  • floatmod (%) returns FLOAT_NAN if oper2 is 0.0. It would have caused infinite loops.
  • FLOAT_(POS_)INFINITY, FLOAT_NEG_INFINITY and FLOAT_NAN defined in the include. The include should be included after YSI as it has #if defined checks, while YSI doesn't.
Reply


Messages In This Thread
float2.inc - Additional operators for floats - by kristo - 14.07.2015, 09:36
Re: float2.inc - Additional operators for floats - by kristo - 22.07.2015, 17:32
Re: float2.inc - Additional operators for floats - by CodeStyle175 - 23.07.2015, 09:20
Re: float2.inc - Additional operators for floats - by kristo - 23.07.2015, 09:32
Re: float2.inc - Additional operators for floats - by CodeStyle175 - 23.07.2015, 09:36
Re: float2.inc - Additional operators for floats - by kristo - 23.07.2015, 09:42

Forum Jump:


Users browsing this thread: 1 Guest(s)