Do Constants help speed up your Program ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Josh
Addict
Addict
Posts: 1183
Joined: Sat Feb 13, 2010 3:45 pm

Re: Do Constants help speed up your Program ?

Post by Josh »

@juergenkulow

Apart from the fact that Microsoft itself advises against using RDTSC, the problem with your code is somewhere else. After I put your code into a readable form, it was immediately clear that your comparison values could produce nothing else than nonsense. See my posting from 25.09.2019

As some previous posters have reported, it doesn't matter if you use a constant or a literal. You can give examples of what you want, nothing will change this.
sorry for my bad english
Post Reply