On Fri, 14 Nov 2003, Hans Franke wrote:
BTW: above example is exactly one thing why I hate C.
basicly every compiler will generate a stupid loop, while
in assembly a REP STOSW would do the trick at maximum
speed possible.
Thats why we invented code peeking and code optimiziers,
Hans. A decent optimizer for x86 *will* know to replace
that loop with a REP-prefixed instruction.
--f