On Sun, Feb 20, 2011 at 7:39 PM, Samuel Adam <a...@certifound.com> wrote:

> [I]f SQLite can *guarantee* no SIGFPE *ever*—under any possible inputs,
> period, bar none ... that should also be documented.
>

SQLite attempts to intercept division by 0.0, replacing the result with
NULL, but otherwise trusts the C compiler and hardware to "do the right
thing" - which I define to be "don't raise signals".

There is one way to guaranteed that SQLite will never generate a SIGFPE, and
that is to compile with SQLITE_OMIT_FLOATING_POINT, but that is probably not
the answer you were looking for....

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to