From 5924b6b2e75afa95f09f75ad3ef9ccbeac65d55d Mon Sep 17 00:00:00 2001 From: Aldy Hernandez Date: Thu, 1 Sep 2022 16:07:18 +0200 Subject: Add global REAL_VALUE_TYPE infinities to real.*. We're starting to abuse the infinity endpoints in the frange code and the associated range operators. Building infinities are rather cheap, and we could even inline them, but I think it's best to just not recalculate them all the time. I see about 20 uses of real_inf in the source code, not including the backends. And I'm about to add more :). gcc/ChangeLog: * emit-rtl.cc (init_emit_once): Initialize dconstinf and dconstninf. * real.h: Add dconstinf and dconstninf. --- gcc/real.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/real.h') diff --git a/gcc/real.h b/gcc/real.h index ec78e8a..2f490ef 100644 --- a/gcc/real.h +++ b/gcc/real.h @@ -462,6 +462,8 @@ extern REAL_VALUE_TYPE dconst1; extern REAL_VALUE_TYPE dconst2; extern REAL_VALUE_TYPE dconstm1; extern REAL_VALUE_TYPE dconsthalf; +extern REAL_VALUE_TYPE dconstinf; +extern REAL_VALUE_TYPE dconstninf; #define dconst_e() (*dconst_e_ptr ()) #define dconst_third() (*dconst_third_ptr ()) -- cgit v1.1