How to define a built-in 24-bit type?
Georg-Johann Lay
avr@gjlay.de
Thu Jan 26 10:38:00 GMT 2012
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...
Johann
More information about the Gcc
mailing list