in reply to Re: Duff's Device
in thread Duff's Device

So the important point here is that we only have to evaluate if (--$n > 0) one eighth of the time?


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi


Replies are listed 'Best First'.
Re: Duff's Device
by Abigail-II (Bishop) on Feb 24, 2004 at 19:43 UTC
    So the important point here is that we only have to evaluate if (--$n > 0) one eighth of the time?
    To quote myself:
    Duff's device does two things: it does loop unrolling, and it uses a neat/tricky way of dealing with the border case of a loop unrolling technique.
    So, I'd say it's an important thing.

    Abigail