[fpc-devel] FPC 2.0.0 vs FPC 2.0.2 (div by zero)

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Mar 16 09:33:56 CET 2006


On 16 mrt 2006, at 03:22, Jose Manuel wrote:

>> Math.SetExceptionMask([exDenormalized,exInvalidOp,exOverflow,e
>> xPrecision,exUnderflow,exZeroDivide]);
>
> I do agree it's much polite and cross platform, but doesn't seem to  
> work in Windows XP Pro (only tested in WinXP Pro SP2) with GL 3.2  
> and FPC 2.0.2 (I've looked everywhere down my PC for a version  
> number, but not found :-), I guess it oughtta be 4.1 but I can't  
> stand for it). Anyway using Set8087CW (which is indeed CPU  
> dependant) does work under my equipment, SetExceptionMask doesn't.

SetExceptionMask calls Set8087CW on x86, so if it doesn't work it's  
because you either use it wrongly, or because it translates its  
parameters wrongly to the input Set8087CW expects.


Jonas



More information about the fpc-devel mailing list