cmpc: when infinity is used, emit macro "INFINITY"
authorDaniel Kochmański <daniel@turtleware.eu>
Fri, 4 Sep 2015 10:59:59 +0000 (12:59 +0200)
committerDaniel Kochmański <daniel@turtleware.eu>
Fri, 4 Sep 2015 19:32:08 +0000 (21:32 +0200)
commit899f51106eaccf32f9629c972c6c66be8217737d
treec6369189f8ab4f196f4cc6ed92c7dcd143ae902c
parent43c3f21fbc4a65923b65c40debcfee99cfdc408f
cmpc: when infinity is used, emit macro "INFINITY"

and "-INFINITY" for negative infinity. These corner-cases lead to
compilation error, so no regression will be imposed even against
non-c99 compilers.

INFINITY and NAN macros are introduced by C99 standard, so such code
requires C-backend to support this math extension. Fixes #156.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
src/cmp/cmpc-wt.lsp
src/cmp/cmpct.lsp