Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site uokvax.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!okstate.UUCP!uokvax.UUCP!emjej From: emjej@uokvax.UUCP Newsgroups: net.lang.c Subject: Re: Right shift vs. divide Message-ID: <3000070@uokvax.UUCP> Date: Sun, 29-Dec-85 08:49:00 EST Article-I.D.: uokvax.3000070 Posted: Sun Dec 29 08:49:00 1985 Date-Received: Tue, 31-Dec-85 06:23:51 EST References: <974@brl-tgr.ARPA> Lines: 11 Nf-ID: #R:brl-tgr.ARPA:974:uokvax.UUCP:3000070:000:443 Nf-From: uokvax.UUCP!emjej Dec 29 07:49:00 1985 And still wrong, because after all the significant bits go away, you get -1 instead of 0, which you should get. I guess some things have to be rediscovered occasionally. James Jones Anybody's compiler have sufficient smarts to puzzle out control flow and turn the example given into an assignment of -3 (or is that -4? not many computers do integer division the way we learned it back in foundations or ring theory!) to the variable?