On Thu, Jan 22, 2015 at 11:54 AM, Richard Smith <richard at metafoo.co.uk> wrote:> On Thu, Jan 22, 2015 at 4:35 AM, H.J. Lu <hjl.tools at gmail.com> wrote: >> Here is the link: >> >> https://groups.google.com/forum/#!topic/ia32-abi/nq6cvH_VVV4 > > The document contains this claim (as do many other psABI documents): > > "Bit-fields that are neither signed nor unsigned > always have non-negative values. Although they may have type char, > short, int, or long (which can have negative values), these bit-fields > have the same range as a bit-field of the same size with the > corresponding unsigned type." >Can you show me where this paragraph in IA-32 psABI? I couldn't find it in my copy. -- H.J.
On Thu, Jan 22, 2015 at 12:00 PM, H.J. Lu <hjl.tools at gmail.com> wrote:> On Thu, Jan 22, 2015 at 11:54 AM, Richard Smith <richard at metafoo.co.uk> wrote: >> On Thu, Jan 22, 2015 at 4:35 AM, H.J. Lu <hjl.tools at gmail.com> wrote: >>> Here is the link: >>> >>> https://groups.google.com/forum/#!topic/ia32-abi/nq6cvH_VVV4 >> >> The document contains this claim (as do many other psABI documents): >> >> "Bit-fields that are neither signed nor unsigned >> always have non-negative values. Although they may have type char, >> short, int, or long (which can have negative values), these bit-fields >> have the same range as a bit-field of the same size with the >> corresponding unsigned type." >> > > Can you show me where this paragraph in IA-32 psABI? > I couldn't find it in my copy. >FYI :-): commit 2496a6db377b489668e49c39b6f477a4f8f0ec22 Author: H.J. Lu <hjl.tools at gmail.com> Date: Wed Jan 7 13:05:49 2015 -0800 Remove Bit-Fields -- H.J.
On Thu, Jan 22, 2015 at 12:05 PM, H.J. Lu <hjl.tools at gmail.com> wrote:> On Thu, Jan 22, 2015 at 12:00 PM, H.J. Lu <hjl.tools at gmail.com> wrote: >> On Thu, Jan 22, 2015 at 11:54 AM, Richard Smith <richard at metafoo.co.uk> wrote: >>> On Thu, Jan 22, 2015 at 4:35 AM, H.J. Lu <hjl.tools at gmail.com> wrote: >>>> Here is the link: >>>> >>>> https://groups.google.com/forum/#!topic/ia32-abi/nq6cvH_VVV4 >>> >>> The document contains this claim (as do many other psABI documents): >>> >>> "Bit-fields that are neither signed nor unsigned >>> always have non-negative values. Although they may have type char, >>> short, int, or long (which can have negative values), these bit-fields >>> have the same range as a bit-field of the same size with the >>> corresponding unsigned type." >>> >> >> Can you show me where this paragraph in IA-32 psABI? >> I couldn't find it in my copy. >> > > FYI :-): > > commit 2496a6db377b489668e49c39b6f477a4f8f0ec22 > Author: H.J. Lu <hjl.tools at gmail.com> > Date: Wed Jan 7 13:05:49 2015 -0800 > > Remove Bit-FieldsAh, I was looking at the wrong branch ('master' instead of 'hjl/x86/master'). Thanks =)