add apple stuff and fix attribution
This commit is contained in:
parent
7f5063ba72
commit
1a5d908c42
|
@ -7,6 +7,12 @@
|
|||
#include "blake2b-common.h"
|
||||
#include "blake2bip.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <machine/endian.h>
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#define htole32(x) OSSwapHostToLittleInt32(x)
|
||||
#endif
|
||||
|
||||
ALIGN(64) static const uint64_t blake2b_IV[8] = {
|
||||
UINT64_C(0x6A09E667F3BCC908), UINT64_C(0xBB67AE8584CAA73B),
|
||||
UINT64_C(0x3C6EF372FE94F82B), UINT64_C(0xA54FF53A5F1D36F1),
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
// Equihash solver
|
||||
// Copyright (c) 2016 John Tromp
|
||||
|
||||
// This development version uses xenoncat's highly optimized
|
||||
// 4-way parallel blake2b implementation
|
||||
// This semi-development version uses Samuel Neves'
|
||||
// AVX2-optimized blake2bp code from https://github.com/sneves/blake2-avx2
|
||||
// modified to perform a 4-way parallel blake2b_final
|
||||
|
||||
// Fix N, K, such that n = N/(k+1) is integer
|
||||
// Fix M = 2^{n+1} hashes each of length N bits,
|
||||
|
|
Loading…
Reference in New Issue