1
0

pa06.h 339 B

123456789101112131415161718192021
  1. typedef __uint128_t uint128;
  2. #define SUCCESS 0
  3. #define FAILURE -1
  4. #define FALSE 0
  5. #define TRUE 1
  6. #define MAX(X,Y) ((X) > (Y) ? (X) : (Y))
  7. // Convert uint128 to/from strings
  8. char * u128ToString(uint128 value);
  9. uint128 alphaTou128(const char * str);
  10. // Return TRUE or FALSE
  11. int primalityTestParallel(uint128 value, int n_threads);