Path: utzoo!attcan!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!bbn!inmet!ishmael!inmet!stt From: stt@inmet Newsgroups: comp.lang.c Subject: Re: Something IBM did right (RT div Message-ID: <124200009@inmet> Date: 10 Nov 88 22:03:00 GMT References: <11612@bellcore.bellcore.com> Lines: 11 Nf-ID: #R:bellcore.bellcore.com:-1161200:inmet:124200009:000:376 Nf-From: inmet!stt Nov 10 17:03:00 1988 The flip-side of this div = shift is to take the route that Intel did with the 80960, and provide an additional right shift instruction which does the same thing as "normal" divide on negative numbers. It is a lot faster than divide, and always truncates toward 0. Essentially it is a divide-by-power-of-2 instruction. S. Tucker Taft Intermetrics, Inc. Cambridge, MA 02138