Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of minor issues when compiling with GCC when all warnings and M64 #3

Open
joeatbayes opened this issue May 7, 2015 · 0 comments

Comments

@joeatbayes
Copy link

  • Add void type to - void vecswap (int i, int j, int n, HatSort *x)
  • The QueryProcessCycleTime did not exist on my gcc running from cygwin so I added the logic to check for QueryProcessCycleTime and fall back to clock() if it was not set. Had to change for both startcycles and stopcycles.
#if !defined(_WIN32)
    gettimeofday(&stop, NULL);
    search_real_time = 1000.0 * ( stop.tv_sec - start.tv_sec ) + 0.001
    * (stop.tv_usec - start.tv_usec );
    search_real_time = search_real_time/1000.0;
    stopcycles = rd_clock();
#else
    #ifdef QueryProcessCycleTime
      QueryProcessCycleTime(GetCurrentProcess(), &stopcycles);
    #else
      stopcycles = clock();
    #endif
    *stop = clock ();
    search_real_time = (*stop - *start) / (float)CLOCKS_PER_SEC;
#endif

With these changes the test ran up to the point where it printed out the list of input words and then just quit.

A larger file containing all words in the english language is available at http://www-personal.umich.edu/~jlawler/wordlist but the sample quite with a error when trying to process this file.

Do not have time to hack on it more since the judy array and khash are working. May come back to it and finish in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant