[Lazarus] Floating point comparison with ulps precision
Sven Barth
pascaldragon at googlemail.com
Tue Aug 14 11:00:30 CEST 2012
Am 13.08.2012 16:46, schrieb Alexander Klenin:
> To fix a bug with caused by rounding errors, I have added ulps-based
> comparison code to TAChart in r38232.
> The bug was encountered by an actual user, so I requested a merge of
> that code to 1.0.
>
> However, since it depends on floating point and integer
> representation, it might cause problems
> for users on non-Intel platforms (does somebody use TAChart on ARM?),
> so perhaps some kind of IFDEF is in order.
> Please review.
Yes, we do (arm-wince). In how far would I notice this change?
> Also, extended version of this code might be a useful addition to the
> FPC's math unit -
> if the FPC team is interested, I'll consider working on that.
>
You should ask this on the fpc-devel list.
Regards,
Sven
More information about the Lazarus
mailing list