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: [PATCH] The first patch from the fixed-point branch


"Fu, Chao-Ying" <fu@mips.com> writes:
> Mark Mitchell wrote:
>
>> > I wonder if GET_MODE_IBITSIZE and GET_MODE_FBITSIZE (or 
>> GET_MODE_IBITS
>> > and GET_MODE_FBITS, or GET_MODE_IWIDTH and GET_MODE_FWIDTH) would be
>> > better names?  Based on the names alone, I'd have assumed
>> > GET_MODE_[IF]BIT were bit positions rather than widths.
>> 
>> From my point of view, I'm OK with either name.
>> 
>> If Chao-Ying wants to change to the SIZE variants, that's 
>> fine -- but I
>> don't want to create undue work for what's already a large 
>> patch series.
>> 
>
>   The usage of IBIT and FBIT comes from the spec (n1169.pdf)
> that defines ACCUM_FBIT, ACCUM_IBIT and so on in stdfix.h.
> But, I can change them to GET_MODE_IBITS and GET_MODE_FBITS.

Ah, I was only thinking about the assumption I mentioned, and
consistency with gcc's other macros.  I hadn't realised the names
were based directly on the spec.

So in that case, never mind.  Everyone else seems to be happy with
the names anyway.  (Thanks for the patch though.)

Richard


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