strength redcution

Vespasian <>
30 Apr 2005 10:58:46 -0400

          From comp.compilers

Related articles
strength redcution (Vespasian) (2005-04-30)
Re: strength redcution (2005-05-01)
Re: strength redcution (glen herrmannsfeldt) (2005-05-01)
| List of all articles for this month |

From: Vespasian <>
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.