This is the mail archive of the gcc@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]

Mode precision and bytesize


Hello,

Can someone please clarify the difference between the precision of a mode and its bytesize?

Also, if you create a CCMODE and ADJUST it's bytesize to 1, then it's currently impossible to change its precision to 8.
You end up with a bytesize of 1 and a precision of 4*BITS_PER_UNITS which doesn't sound right.

This is because precision is output in genmodes.c:emit_mode_precision and will output 
tagged_printf ("%u*BITS_PER_UNIT", m->bytesize, m->name);
however at this point in time m->bytesize is still the original size of 4 (for a CCmode) before the evaluation of ADJUST_BYTESIZE in <target>-modes.def.

Is there a reason for it to be like this?

Cheers,
Paulo Matos



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