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]

Re: How to define a built-in 24-bit type?


On 01/21/2012 01:48 AM, Georg-Johann Lay wrote:
> FRACTIONAL_INT_MODE (PSI, 24, 3);

Unrelated to everything else, I'm not sure you want a *fractional* mode.
You're using all bits of the 3 bytes of storage.  Fractional modes are
those where there are unused bits of the in-memory representation.  E.g.
when a 20 bit quantity is stored in 3 bytes.


r~


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