Name: Anonymous 2010-05-13 18:05
What are the differences between
and
?
while (condition);and
while (condition) asm("nop");?
while (condition);while (condition) asm("nop");
while (...);
loop:
...condition.../test/cmp
jcc loop
vs
while (condition) __asm { nop }
loop:
...condition.../test/cmp
jcc end_loop
nop
jmp loop
end_loopvoid f(bool c){ return c ? f(c) : return; }
while(is_data_processed()) sleep(1);WaitForSingleObject(hEvent,INFINITE)