Re: >>/<< 32 Bit wrong on 32 architechture
From: Benjamin Riefenstahl (Benjamin.Riefenstahl_at_epost.de)
Date: 12/30/03
- Next message: Benjamin Riefenstahl: "Re: >>/<< 32 Bit wrong on 32 architechture"
- Previous message: Benjamin Riefenstahl: "Re: tcl max string length unicode -- wxString --sqlite"
- In reply to: David Gravereaux: "Re: >>/<< 32 Bit wrong on 32 architechture"
- Next in thread: Benjamin Riefenstahl: "Re: >>/<< 32 Bit wrong on 32 architechture"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Dec 2003 00:30:07 +0100
Hi David,
David Gravereaux <davygrvy@pobox.com> writes:
> What's the C standard say on the rules of shifting?
In C89 the result of
a << b and a >> b
is explicitly undefined if
b >= (CHAR_BITS * sizeof(a)) || b < 0
In addition the result of
a >> b
is implementation defined, if
a < 0
benny
- Next message: Benjamin Riefenstahl: "Re: >>/<< 32 Bit wrong on 32 architechture"
- Previous message: Benjamin Riefenstahl: "Re: tcl max string length unicode -- wxString --sqlite"
- In reply to: David Gravereaux: "Re: >>/<< 32 Bit wrong on 32 architechture"
- Next in thread: Benjamin Riefenstahl: "Re: >>/<< 32 Bit wrong on 32 architechture"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|