[Flashforth-devel] Floating point library - open issues
Brought to you by:
oh2aun
From: om1zz <om...@vo...> - 2015-05-30 08:53:24
|
Hi, as discussed with Mike before, there are few open issues with floating point library, which are not critical, but needs some tweaking to be perfect, however. 1. handling largest positive and largest negative number, it crashes now. 2. printing NaN, crashes 3. "e" for exponent 1. 0x7f7fffff == 3.402823466385288598E38 0xff7fffff == -3.402823466385288598E38 does $ffff $7f7f fs. - crash $ff7f $ffff fs. - crash 2. -1.0e3 flog fs. crash -1.0e3 fsqrt fs. crash $ffff $7fff fs. crash $ffff $ffff fs. crash Those calcs shall print something like "NaN" The bove issues come from following - the floating point library was written for amorth, and the math written in asm returned specific agreed values for those results. XC16 returns different values in FF. 3. Mainly an issue with 0e 3e 123e as it could be recognised as HEX value when in hex. "E" may solve the problem, when agreed so. Igor |