Article View: gnu.gcc.help
Article #50150Re: Incompatibility with long right shifts not in the info pages
From: Nick Haines
Date: Wed, 17 Nov 1993 14:05
Date: Wed, 17 Nov 1993 14:05
9 lines
1027 bytes
1027 bytes
> (where y is unknown). So for y>=32, one obtains a result incompatible > with ISO C, which specifies simply floor(x/2^y). Whoops. I missed a sentence in the standard: "if the value of the right operand ... is greater than ... the width ... of the ... left operand, the behavior is undefined." This was lurking way up the page from the sentence describing the result in other conditions. Nick
Technical Details
Message-ID:
<7484.753544907@gamgee>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!harlequin.co.UK!nickhShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f753af2a6e079d94 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-11-17 08:35:50 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!harlequin.co.UK!nickh From: nickh@harlequin.co.UK (Nick Haines) Newsgroups: gnu.gcc.help Subject: Re: Incompatibility with long right shifts not in the info pages Date: 17 Nov 1993 09:05:57 -0500 Organization: GNUs Not Usenet Lines: 9 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <7484.753544907@gamgee>