¡@

Home 

c++ Programming Glossary: jg

Is < faster than <=? [closed]

http://stackoverflow.com/questions/12135518/is-faster-than

jne Jump if not equal ZF 0 jz Jump if zero equal ZF 1 jg Jump if greater ZF 0 and SF OF etc... Example Edited for brevity.. to mov eax DWORD PTR esp 24 a cmp eax DWORD PTR esp 28 b jge .L2 jump if a is b Do something 1 .L2 And if a b Do something.. to mov eax DWORD PTR esp 24 a cmp eax DWORD PTR esp 28 b jg .L5 jump if a is b Do something 2 .L5 So the only difference..

How can adding code to a loop make it faster?

http://stackoverflow.com/questions/688325/how-can-adding-code-to-a-loop-make-it-faster

if iScaled 0 mov edx DWORD PTR _i 5009 ebp test edx edx jg SHORT L4458 177 pDestination 0 mov BYTE PTR ecx 0 178 else if.. if iScaled 0 mov edx DWORD PTR _i 4863 ebp test edx edx jg SHORT L4475 202 pDestination 0 mov BYTE PTR edi 0 203 else if.. mov edx DWORD PTR _SRGBCeiling ecx 4 cmp edx DWORD PTR esi jg SHORT L4481 209 iSRGB inc ecx L4481 210 pDestination unsigned..