"Ralf Hildebrandt" wrote:
> Well, my example was inteded to be an example for good code...
Oh - what a bad typing error - it should be:
Well, my example was /not/ intended to be an example for good code...
Ralf
"Bill Knight" wrote:
> If you want to speed it up even more, make i signed and test for still
> positive.
>
> volatile int i = 1;
> P1OUT = 0;
>
> do {
> P1OUT++;
> } while ((i <<= 1) > 0);
>
Well, my example was inteded to be an example for good code - it was just a
minimal example for sh
If you want to speed it up even more, make i signed and test for still positive.
volatile int i = 1;
P1OUT = 0;
do {
P1OUT++;
} while ((i <<= 1) > 0);
Regards
-Bill Knight
R O SoftWare
On Fri, 23 Sep 2005 15:17:43 +0200, Ralf Hildebrandt wrote:
>Hi!
>The while loop is handled in an ineffi