strength redcution

Vespasian <julie.spicer@verizon.net>
30 Apr 2005 10:58:46 -0400

          From comp.compilers

Related articles
strength redcution julie.spicer@verizon.net (Vespasian) (2005-04-30)
Re: strength redcution Danny.Dube@ift.ulaval.ca (2005-05-01)
Re: strength redcution gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-05-01)
| List of all articles for this month |
From: Vespasian <julie.spicer@verizon.net>
Newsgroups: comp.compilers
Date: 30 Apr 2005 10:58:46 -0400
Organization: Compilers Central
Keywords: optimize, question, comment
Posted-Date: 30 Apr 2005 10:58:46 EDT

Anyone know how to replace the expression,


i div c,


with addition and/or subtraction, where c in a constant and
i is the index of a loop that increments with a step size of 1
[Seems to me you'd have to keep a separate counter and each time
that counter reached c, add one to the quotient value and reset
the counter. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.