This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: make real.h constants more consistent


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.
>>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]