chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] [PATCH] Emit C99 constants for +nan.0 and [+-]inf.


From: John Cowan
Subject: Re: [Chicken-hackers] [PATCH] Emit C99 constants for +nan.0 and [+-]inf.0 `##core#float' nodes
Date: Thu, 27 Jun 2019 18:28:00 -0400

Don't forget to cast them to double, however.

To get a negative zero you need an initialized global variable:

double negative_zero = 1.0 / -INFINITY;

and then negative_zero is the Right Thing.


On Thu, Jun 27, 2019 at 5:20 PM Evan Hanson <address@hidden> wrote:
Putting this here so it doesn't get lost.

Evan
_______________________________________________
Chicken-hackers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]