Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!linus!encore!soper From: soper@encore.UUCP Newsgroups: comp.lang.modula2 Subject: Re: Bitshift operations Message-ID: <1935@encore.UUCP> Date: Sat, 12-Sep-87 17:27:27 EDT Article-I.D.: encore.1935 Posted: Sat Sep 12 17:27:27 1987 Date-Received: Sun, 13-Sep-87 08:52:42 EDT References: <198@bernina.UUCP> Reply-To: soper@encore.UUCP (Pete Soper) Organization: Encore Computer Corp, Marlboro, MA Lines: 11 In article <198@bernina.UUCP> wille@ethz.UUCP (M. Wille) writes: >The above mentioned compiler produces shift operations when powers of two >are used as constant operands in multiplications and divisions. Depending >on the type of the first operand, i.e. signed or unsigned, an arithmetic It astonishes me that Wirth could fall for the idea of using shifts in place of signed division. I ripped this out of the compiler when I ported it to my company's system. -- Pete Soper, Encore Computer Corp uucp: {necntc,talcott,ihnp4,decvax,allegra}!encore!soper