diff --git a/cuda_helper.h b/cuda_helper.h index 841cbd9..f6ff545 100644 --- a/cuda_helper.h +++ b/cuda_helper.h @@ -13,6 +13,11 @@ #include +#ifndef UINT32_MAX +/* slackware need that */ +#define UINT32_MAX UINT_MAX +#endif + #ifndef MAX_GPUS #define MAX_GPUS 16 #endif diff --git a/qubit/qubit_luffa512.cu b/qubit/qubit_luffa512.cu index e137106..ec40564 100644 --- a/qubit/qubit_luffa512.cu +++ b/qubit/qubit_luffa512.cu @@ -23,10 +23,6 @@ #include "cuda_helper.h" -#ifndef UINT32_MAX -#define UINT32_MAX UINT_MAX -#endif - typedef unsigned char BitSequence; __constant__ uint64_t c_PaddedMessage80[16]; // padded message (80 bytes + padding)