Design
opttech.txt
Associated article: Optimization Techniques
Tags: Design
Published source code accompanying the article by Tim Kientzle in which he shares hard-won techniques for improving performance.
Optimization Techniques
by Tim Kientzle
Example 1:
(a)
__int64 readTSC() {
__asm { rdtsc }
}
(b)
long long readTSC(void) {
/* Assumes 'long long' is 64 bits, 'unsigned' is 32 */
union { long long complete; unsigned part[2]; } ticks;
__asm__ ("rdtsc; mov %%eax,%0;mov %%edx,%1"
: "=mr&...


