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?


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



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