Skip to content

Commit

Permalink
fixed immintrin bug
Browse files Browse the repository at this point in the history
  • Loading branch information
monkins1010 committed Apr 9, 2019
1 parent f3d5365 commit 3e67c4d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ ccminer_SOURCES = elist.h miner.h compat.h \
ccminer.cpp pools.cpp util.cpp bench.cpp \
api.cpp hashlog.cpp stats.cpp sysinfos.cpp \
equi/equi-stratum.cpp verus/verusscan.cpp verus/haraka.c verus/haraka.h \
verus/haraka_portable.c verus/verus_clhash.cpp verus/clhash_portable.cpp

verus/haraka_portable.c verus/verus_clhash.cpp


if HAVE_WINDOWS
Expand Down
8 changes: 4 additions & 4 deletions bignum.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ class CBigNum
CBigNum(signed char n) { init(); if (n >= 0) setulong(n); else setint64(n); }
CBigNum(short n) { init(); if (n >= 0) setulong(n); else setint64(n); }
CBigNum(int n) { init(); if (n >= 0) setulong(n); else setint64(n); }
CBigNum(long n) { init(); if (n >= 0) setulong(n); else setint64(n); }
CBigNum(int64_t n) { init(); setint64(n); }
// CBigNum(long n) { init(); if (n >= 0) setulong(n); else setint64(n); }
// CBigNum(int64_t n) { init(); setint64(n); }
CBigNum(unsigned char n) { init(); setulong(n); }
CBigNum(unsigned short n) { init(); setulong(n); }
CBigNum(unsigned int n) { init(); setulong(n); }
CBigNum(unsigned long n) { init(); setulong(n); }
CBigNum(uint64_t n) { init(); setuint64(n); }
// CBigNum(unsigned long n) { init(); setulong(n); }
// CBigNum(uint64_t n) { init(); setuint64(n); }
//explicit CBigNum(uint256_t n) { init(); setuint256(n); }

explicit CBigNum(const std::vector<unsigned char>& vch)
Expand Down
6 changes: 3 additions & 3 deletions ccminer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright 2010 Jeff Garzik
* Copyright 2012-2014 pooler
* Copyright 2014-2017 tpruvot
Expand Down Expand Up @@ -1763,7 +1763,7 @@ static bool wanna_mine(int thr_id)
float temp = gpu_temp(cgpu);
if (temp > opt_max_temp) {
if (!conditional_state[thr_id] && !opt_quiet)
gpulog(LOG_INFO, thr_id, "temperature too high (%.0f°c), waiting...", temp);
gpulog(LOG_INFO, thr_id, "temperature too high (%.0f°c), waiting...", temp);
state = false;
} else if (opt_max_temp > 0. && opt_resume_temp > 0. && conditional_state[thr_id] && temp > opt_resume_temp) {
if (!thr_id && opt_debug)
Expand Down Expand Up @@ -3668,7 +3668,7 @@ int main(int argc, char *argv[])
if (!opt_quiet) {
const char* arch = is_x64() ? "64-bits" : "32-bits";

printf(" Built with VC++ %d" , msver());
printf(" Built with a compiler ");
printf(" Originally based on Christian Buchner and Christian H. project\n");
printf("BTC donation address: 1AJdfCpLWPNoAMDfHF1wD5y8VgKSSTHxPo (tpruvot)\n\n");
printf("Verus donation address: REoPcdGXthL5yeTCrJtrQv5xhYTknbFbec (monkins)\n");
Expand Down
2 changes: 1 addition & 1 deletion verus/verus_clhash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <assert.h>
#include <string.h>
#include <intrin.h>
#include <immintrin.h>
//#include "cpu_verushash.hpp"

#ifdef _WIN32
Expand Down
2 changes: 1 addition & 1 deletion verus/verus_clhash_portable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <assert.h>
#include <string.h>

#include <intrin.h>
#include <immintrin.h>


#ifdef __APPLE__
Expand Down

0 comments on commit 3e67c4d

Please sign in to comment.