Andre Poenitz <[EMAIL PROTECTED]> writes:
> > As a matter of style, yes, probably. However, for PODs there's no efficiency
> > penalty to i-- vis-à-vis --i.

> Urban legend.  There's a difference between  the 'interesting' cases
> whebn iterating downwards  (i.e.  i-- (!= 0) vs. --i >= 0)
> Check your disassembly.
> [I did so recently on four different compilers (gcc, msvc, some IRIX 6.5
> and some AXP(?)), and --i >= 0 was uniformly the best, usually saving
> two assembler statements and in three cases a used register)

Interesting.

How about in the common-or-garden case?
  for (int i = 0; i != 10; i++)...

Angus



Reply via email to