]> git.sesse.net Git - freerainbowtables/blobdiff - BOINC software/BOINC client apps/distrrtgen_cuda/rcuda.h
cleanup signed/unsigned warnings
[freerainbowtables] / BOINC software / BOINC client apps / distrrtgen_cuda / rcuda.h
index eeeac69aa9f8c67f4d955d0c1a7a45887fc6f3c5..370b0646653f895cd6fec06cc796cd66acd0ee04 100644 (file)
@@ -1,13 +1,15 @@
 #ifndef RCUDA_H
 #define RCUDA_H
 
+#include "Public.h"
+
 namespace rcuda {
 
 enum RHash { RHASH_UNDEF = -1, RHASH_LM, RHASH_MD4, RHASH_MD5, RHASH_SHA1, RHASH_NTLM };
 
 struct RCudaTask {
        RHash hash;
-       unsigned __int64 startIdx;
+       uint64 startIdx;
        int idxCount;
        unsigned char* stPlain;
        int stPlainSize;
@@ -17,12 +19,12 @@ struct RCudaTask {
        int charSetSize;
        int *cpPositions;
        int cpPosSize;
-       unsigned __int64 reduceOffset;
-       unsigned __int64 plainSpaceTotal;
+       uint64 reduceOffset;
+       uint64 plainSpaceTotal;
        unsigned int rainbowChainLen;
 };
 
-extern "C" int CalcChainsOnCUDA(const RCudaTask* task, unsigned __int64 *resultBuff);
+extern "C" int CalcChainsOnCUDA(const RCudaTask* task, uint64 *resultBuff);
 extern "C" int GetChainsBufferSize(int minSize);
 
 }