This is the mail archive of the
mailing list for the GCC project.
Re: How to define a built-in 24-bit type?
- From: Richard Henderson <rth at redhat dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 26 Jan 2012 08:05:28 +1100
- Subject: Re: How to define a built-in 24-bit type?
- References: <4F197EB0.email@example.com>
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.