Article View: comp.arch
Article #1054Re: reassociation and undefined behaviour
From: John Levine
Date: Thu, 03 Dec 2026 20:20
Date: Thu, 03 Dec 2026 20:20
18 lines
1849 bytes
1849 bytes
According to MitchAlsup <user5857@newsgrouper.org.invalid>: >anton@mips.complang.tuwien.ac.at (Anton Ertl) posted: > >> David Brown <david.brown@hesbynett.no> writes: >> >There are good reasons for such shifts being UB in C. Processors are >> >not consistent in how out-of-range shifts are handled. "x >> 32" might >> >give 0 or it might give x. > >How is x a useful result ?? EVER ??? Help figure out what kind of computer you're running on but I take your point. -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID:
<11esiul$1dlh$1@gal.iecc.com>Path:
mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mailReferences:
<11cpqih$acf5$1@dont-email.me> <11ergn7$6utu$1@dont-email.me> <2026Dec3.122036@mips.complang.tuwien.ac.at> <1796326998-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: reassociation and undefined behaviour Date: Thu, 3 Dec 2026 20:20:37 -0000 (UTC) Organization: Taughannock Networks Message-ID: <11esiul$1dlh$1@gal.iecc.com> References: <11cpqih$acf5$1@dont-email.me> <11ergn7$6utu$1@dont-email.me> <2026Dec3.122036@mips.complang.tuwien.ac.at> <1796326998-5857@newsgrouper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 3 Dec 2026 20:20:37 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="46769"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <11cpqih$acf5$1@dont-email.me> <11ergn7$6utu$1@dont-email.me> <2026Dec3.122036@mips.complang.tuwien.ac.at> <1796326998-5857@newsgrouper.org> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine)