]> git.ipfire.org Git - thirdparty/gcc.git/commit
Replace finite_operands_p with maybe_isnan.
authorAldy Hernandez <aldyh@redhat.com>
Wed, 19 Oct 2022 17:28:09 +0000 (19:28 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 20 Oct 2022 14:09:18 +0000 (16:09 +0200)
commitbe43d5d3051589ee00f6685103539dced767c47d
treeff7e1334ff43d035359b93a468ebc6a2087dd283
parentc75ee0bffabfd6056e29e7a421ae8e9615639a8f
Replace finite_operands_p with maybe_isnan.

The finite_operands_p function was incorrectly named, as it only
returned TRUE when !NAN.  This was leftover from the initial
implementation of frange.  Using the maybe_isnan() nomenclature is
more consistent and easier to understand.

gcc/ChangeLog:

* range-op-float.cc (finite_operand_p): Remove.
(finite_operands_p): Rename to...
(maybe_isnan): ...this.
(frelop_early_resolve): Use maybe_isnan instead of finite_operands_p.
(foperator_equal::fold_range): Same.
(foperator_equal::op1_range): Same.
(foperator_not_equal::fold_range): Same.
(foperator_lt::fold_range): Same.
(foperator_le::fold_range): Same.
(foperator_gt::fold_range): Same.
(foperator_ge::fold_range): Same.
gcc/range-op-float.cc