tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tcc grammar problems


From: Thomas Preud'homme
Subject: Re: [Tinycc-devel] tcc grammar problems
Date: Wed, 06 Aug 2014 21:56:50 +0800
User-agent: KMail/4.12.4 (Linux/3.14-2-amd64; KDE/4.13.3; x86_64; ; )

Le mardi 05 août 2014, 22:08:13 Thomas Preud'homme a écrit :
> 
> +                    warr = 0;
> +                    if(bb){
> +                        s = 64 - ((type->t >> (VT_STRUCT_SHIFT + 6)) &
> 0x3f);
> 
> Spacing issue again and I don't understand the + 6. The bitfield size is
> encoded from bit (1 << VT_STRUCT_SHIFT) on 6 bits. So you should do:
> (type->t >> VT_STRUCT_SHIFT) & 0x3f (that is remove all the bits before the
> bitfield size and then only keep the 6 least significant bits.

Sorry my apologize. I forgot there is 6 bits for the position and then again 6 
bits for the size. Please ignore above remark.

Best regards,

Thomas

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]