Compilation fixes
This commit is contained in:
parent
8a51590d7d
commit
82da84d849
2 changed files with 3 additions and 7 deletions
|
@ -274,14 +274,8 @@ Options::Options(int argc, char** argv) :
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if(optarg == NULL)
|
|
||||||
{
|
|
||||||
fprintf(stderr, "Unsupported option argument %d: #%d '%s'\n",
|
|
||||||
key, argc, argv[argc - 1]);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!parseArg(key, optarg))
|
if(!parseArg(key, optarg == NULL ? "" : optarg))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -317,6 +317,7 @@ static inline void cn_implode_scratchpad(const __m128i* input, __m128i* output)
|
||||||
}
|
}
|
||||||
|
|
||||||
#if ! defined _WIN64 && defined _WIN32
|
#if ! defined _WIN64 && defined _WIN32
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||||
static inline __m128i _mm_set_epi64x(const uint64_t __a, const uint64_t __b)
|
static inline __m128i _mm_set_epi64x(const uint64_t __a, const uint64_t __b)
|
||||||
{
|
{
|
||||||
__m128i ret;
|
__m128i ret;
|
||||||
|
@ -325,6 +326,7 @@ static inline __m128i _mm_set_epi64x(const uint64_t __a, const uint64_t __b)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
template<size_t ITERATIONS, size_t MEM, size_t MASK, bool SOFT_AES>
|
template<size_t ITERATIONS, size_t MEM, size_t MASK, bool SOFT_AES>
|
||||||
inline void cryptonight_hash(const void* __restrict__ input, size_t size, void* __restrict__ output,
|
inline void cryptonight_hash(const void* __restrict__ input, size_t size, void* __restrict__ output,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue