]> gcc.gnu.org Git - gcc.git/commit
Add method to query the sign of a NAN.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 11 Oct 2022 17:21:14 +0000 (19:21 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Wed, 12 Oct 2022 06:49:00 +0000 (08:49 +0200)
commit658788f3480e95f1dda0a143b60be89099e5d3c7
treea209fd477478ea67ccc7fe3283e7408650ce8668
parent6ce0823721d476cabb2007fecc12c07202325e17
Add method to query the sign of a NAN.

In writing some range-op entries I noticed we don't have a way to
query the sign of the NAN in a range, unless the range only contains
NAN, in which case you can just use frange::signbit_p.  This patch
adds a method that returns TRUE if there exists the possiblity of a
NAN and we know its sign.

gcc/ChangeLog:

* value-range.h (frange::nan_signbit_p): New.
gcc/value-range.h
This page took 0.05817 seconds and 5 git commands to generate.