This commit is contained in:
Ben Gräf 2019-07-04 21:35:32 +02:00
parent 4de8768137
commit 26741d686c
6 changed files with 46 additions and 17 deletions

View file

@ -52,6 +52,7 @@ public:
ALGO_CRYPTONIGHT_ULTRALITE, /* CryptoNight-Ultralite (256KB ScratchPad) */
ALGO_CRYPTONIGHT_EXTREMELITE, /* CryptoNight-Verylite (128KB ScratchPad) */
ALGO_CRYPTONIGHT_HEAVY, /* CryptoNight-Heavy (4MB ScratchPad) */
ALGO_ARGON2_512, /* Argon2-Chuckwa (No pre allocated ScratchPad) */
};
enum AlgoVariant {
@ -126,6 +127,7 @@ public:
inline int64_t multiHashThreadMask() const { return m_multiHashThreadMask; }
inline void setColors(bool colors) { m_colors = colors; }
inline static bool isCNAlgo(Algo algo) { return algo != Options::ALGO_ARGON2_512; }
inline static void release() { delete m_self; }
const char *algoName() const;