This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: make real.h constants more consistent
- From: Ian Lance Taylor <iant at google dot com>
- To: Manuel LÃpez-IbÃÃez <lopezibanez at gmail dot com>
- Cc: "Gcc Patch List" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 18 Aug 2008 09:01:16 -0700
- Subject: Re: make real.h constants more consistent
- References: <6c33472e0808161734j4b556cf3kda26710652f8a786@mail.gmail.com>
"Manuel LÃpez-IbÃÃez" <lopezibanez@gmail.com> writes:
> 2008-08-17 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> * real.h (dconst_e, dconst_third, dconst_sqrt2, dconst_e_ptr,
> dconst_third_ptr, dconst_sqrt2_ptr): Declare.
> (enum real_value_const): Delete.
> (get_real_const): Delete.
> * real.c (get_real_const): Delete.
> (dconst_e_ptr): Define.
> (dconst_third_ptr): Define.
> (dconst_sqrt2_ptr): Define.
> * builtins.c: Update all callers.
> + = real_value_truncate (TYPE_MODE (type), dconst_sqrt2());
Space before right parenthesis. In fact, the space needs to be added
to every line you added to builtins.c.
> +#define dconst_e() (*dconst_e_ptr())
> +#define dconst_third() (*dconst_third_ptr())
> +#define dconst_sqrt2() (*dconst_sqrt2_ptr())
Spaces needed here too in the macro expansion.
OK with those changes.
Thanks.
Ian