unsigned long is faster because the fact it is a pre defined primitive prototype just like char, int, long, double, float, short or bool.
the reason it's faster is because it doesn't have to back track on execution and look up the typedef it may be a very small difference but there is still a difference either way you look at it. unsigned long = dword unsigned short = word unsigned int = uint etc etc etc but there is no back tracking. optimization is important and understanding how to optimize is also very important, anyways if anything else needs to be explained just do another mention. regards,
Cody.
unsigned long is faster because the fact it is a pre defined primitive prototype just like char, int, long, double, float, short or bool.
the reason it's faster is because it doesn't have to back track on execution and look up the typedef it may be a very small difference but there is still a difference either way you look at it. unsigned long = dword unsigned short = word unsigned int = uint etc etc etc but there is no back tracking. optimization is important and understanding how to optimize is also very important, anyways if anything else needs to be explained just do another mention. regards,
Cody.
~edit~
by faster I mean faster execution
thx for the explanation
but i still confused
i tried deasm both and the generated code was the same!!!
Originally Posted by giniyat101
thx for the explanation
but i still confused
i tried deasm both and the generated code was the same!!!
@giniyat101
yes because the what you're doing is one in the same, all dword is, is an typedef of unsigned long its quicker to write but its also improper and slower executing.