This is the mail archive of the
mailing list for the GCC project.
Re: How to define a built-in 24-bit type?
- From: Georg-Johann Lay <avr at gjlay dot de>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 26 Jan 2012 00:04:08 +0100
- Subject: Re: How to define a built-in 24-bit type?
- References: <4F197EB0.email@example.com> <4F206E98.firstname.lastname@example.org>
Richard Henderson schrieb:
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.
Yes you are right. All bits are used and it should be an int mode. I
tried that back then but it shred the compiler, so that I used the
partial mode and then it worked...