i386 assembly timing issue

2001-04-20 Thread David Howells
I've attached two slightly different bits of i386 assembly that achieve the same end, but in slightly different ways. Can some one tell me why Case 1 is faster than Case 2? Case 1 involves an extra CALL instruction. * Case 1 has a little wrapper function that saves ECX and EDX before

i386 assembly timing issue

2001-04-20 Thread David Howells
I've attached two slightly different bits of i386 assembly that achieve the same end, but in slightly different ways. Can some one tell me why Case 1 is faster than Case 2? Case 1 involves an extra CALL instruction. * Case 1 has a little wrapper function that saves ECX and EDX before