Guest User

Daniel Lemire

a guest
Mar 13th, 2010
219
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* file 1 -- adding test */
  2. #include <stdlib.h>
  3. int main(int argc, char *argv[]) {
  4.     int N = atoi(argv[1]);
  5.     long int k=0;
  6.     int sum=0;
  7.     for(int j = 0; j<1000;++j) for(k=0; k < N; ++k) sum+= k;
  8.     return 0;
  9. }
  10.  
  11. /* file 2 -- xor test */
  12. #include <stdlib.h>
  13. int main(int argc, char *argv[]) {
  14.     int N = atoi(argv[1]);
  15.     long int k=0;
  16.     int sum=0;
  17.     for(int j = 0; j<1000;++j) for(k=0; k < N; ++k) sum^= k;
  18.     return 0;
  19. }
RAW Paste Data