On 17 May 2011, at 22:03, Anton Shepelev wrote:

> Do  I understand correctly, that at load my library was dis-
> abling the exception mask for the whole program?

The fpu exception mask is always global for an entire program. It is not 
possible to disable it only for the code in one single library.

> Is masking such exceptions a common practice in C?

It's not C programmers that do it. It's the C library that does it in its 
startup code, or maybe even the operating system when creating a new process. 
But as a result, indeed almost no single C program takes invalid floating point 
operations into account (which is bad practice, because e.g. floating point 
operations involving NaNs can be extremely slow).

> Will  it
> be politically correct to ask the developer to fix the prob-
> lem?

You can try, but he probably won't care.


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to