Created
October 18, 2012 07:32
-
-
Save nitrix/3910296 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unsigned int z = 1023; | |
unsigned int x = 1024; | |
unsigned int test,i; | |
/* test A */ | |
double a = get_time(); | |
for(i=0; i<1000000000; i++) { | |
test = 99999; | |
test &= z; | |
} | |
printf("A: %f\n",get_time()-a); | |
/* test B */ | |
double b = get_time(); | |
for(i=0; i<1000000000; i++) { | |
test = 99999; | |
test %= x; | |
} | |
printf("B: %f\n",get_time()-b); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment