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: "Manuel López-Ibáñez" <lopezibanez at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 4 Aug 2008 13:19:08 +0200
- Subject: Re: make real.h constants more consistent
- References: <6c33472e0807250719o5981115cwbc58ba1ce28091c3@mail.gmail.com> <6c33472e0807290241l541506c9uf75609a1118f8775@mail.gmail.com>
PING: http://gcc.gnu.org/ml/gcc-patches/2008-07/msg02247.html
2008/7/29 Manuel López-Ibáñez <lopezibanez@gmail.com>:
> Updated and regression tested after tuples merge.
>
> 2008/7/25 Manuel López-Ibáñez <lopezibanez@gmail.com>:
>> This is a small patch that simply hides the implementation of real
>> constants for e, 1/3, sqrt(2) from outside real.[ch]. I think this
>> makes the code cleaner (each constant has its own function, no special
>> enumeration constants needed, no switch needed) and easier to read
>> (dconst_e is easier and shorter than *get_real_const (rv_e)).
>>
>> Bootstrapped and regression tested with --enable-languages=all on
>> 86_64-unknown-linux-gnu.
>>
>> OK for trunk?
>>
>>
>> 2008-07-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>>
>> * real.h (dconst_e, dconst_third, dconst_sqrt2, get_real_const_e,
>> get_real_const_third, get_real_const_sqrt2): Declare.
>> (enum real_value_const): Delete.
>> (get_real_const): Delete.
>> * real.c (get_real_const): Delete.
>> (get_real_const_e): Define.
>> (get_real_const_third): Define.
>> (get_real_const_sqrt2): Define.
>> * builtins.c: Update all callers.
>>
>