mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-03 10:35:03 +00:00
Remove inline from hash functions
This commit is contained in:
parent
20bfe45789
commit
72a15389c9
@ -55,7 +55,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void animehash(void *state, const void *input)
|
||||
void animehash(void *state, const void *input)
|
||||
{
|
||||
sph_blake512_context ctx_blake;
|
||||
sph_bmw512_context ctx_bmw;
|
||||
|
@ -109,7 +109,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void bitblockhash(void *state, const void *input)
|
||||
void bitblockhash(void *state, const void *input)
|
||||
{
|
||||
init_Bhash_contexts();
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
* Encode a length len/4 vector of (uint32_t) into a length len vector of
|
||||
* (unsigned char) in big-endian form. Assumes len is a multiple of 4.
|
||||
*/
|
||||
static inline void
|
||||
static void
|
||||
be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
{
|
||||
uint32_t i;
|
||||
@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
|
||||
static const uint32_t diff1targ_blake256 = 0x000000ff;
|
||||
|
||||
inline void blake256hash(void *state, const void *input)
|
||||
void blake256hash(void *state, const void *input)
|
||||
{
|
||||
sph_blake256_context ctx_blake;
|
||||
sph_blake256_init(&ctx_blake);
|
||||
|
@ -43,7 +43,7 @@
|
||||
* Encode a length len/4 vector of (uint32_t) into a length len vector of
|
||||
* (unsigned char) in big-endian form. Assumes len is a multiple of 4.
|
||||
*/
|
||||
static inline void
|
||||
static void
|
||||
be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
{
|
||||
uint32_t i;
|
||||
@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
|
||||
static const uint32_t diff1targ_blake256 = 0x000000ff;
|
||||
|
||||
inline void blakecoinhash(void *state, const void *input)
|
||||
void blakecoinhash(void *state, const void *input)
|
||||
{
|
||||
sph_blake256_context ctx_blake;
|
||||
sph_blake256_init(&ctx_blake);
|
||||
|
@ -37,7 +37,7 @@ static const uint32_t diff1targ = 0x0000ffff;
|
||||
|
||||
|
||||
|
||||
inline void credits_hash(void *state, const void *input)
|
||||
void credits_hash(void *state, const void *input)
|
||||
{
|
||||
sph_sha256_context sha1, sha2;
|
||||
uint32_t hash[8], hash2[8];
|
||||
|
@ -94,7 +94,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
static inline void xhash(void *state, const void *input)
|
||||
static void xhash(void *state, const void *input)
|
||||
{
|
||||
init_Xhash_contexts();
|
||||
|
||||
|
@ -78,7 +78,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void freshHash(void *state, const void *input)
|
||||
void freshHash(void *state, const void *input)
|
||||
{
|
||||
init_freshHash_contexts();
|
||||
|
||||
|
@ -50,7 +50,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void fuguehash(void *state, const void *input)
|
||||
void fuguehash(void *state, const void *input)
|
||||
{
|
||||
sph_fugue256_context ctx_fugue;
|
||||
sph_fugue256_init(&ctx_fugue);
|
||||
|
@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void groestlhash(void *state, const void *input)
|
||||
void groestlhash(void *state, const void *input)
|
||||
{
|
||||
sph_groestl512_context ctx_groestl;
|
||||
|
||||
|
@ -93,7 +93,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void inkhash(void *state, const void *input)
|
||||
void inkhash(void *state, const void *input)
|
||||
{
|
||||
uint32_t hash[16];
|
||||
sph_shavite512_context ctx_shavite;
|
||||
|
@ -52,7 +52,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
inline void lyra2rehash(void *state, const void *input)
|
||||
void lyra2rehash(void *state, const void *input)
|
||||
{
|
||||
sph_blake256_context ctx_blake;
|
||||
sph_groestl256_context ctx_groestl;
|
||||
|
@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
}
|
||||
|
||||
|
||||
inline void lyra2rev2hash(void *state, const void *input)
|
||||
void lyra2rev2hash(void *state, const void *input)
|
||||
{
|
||||
sph_blake256_context ctx_blake;
|
||||
sph_bmw256_context ctx_bmw;
|
||||
|
@ -103,7 +103,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void maruhash(void *state, const void *input)
|
||||
void maruhash(void *state, const void *input)
|
||||
{
|
||||
init_Mhash_contexts();
|
||||
|
||||
|
@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void mghash(void *state, const void *input)
|
||||
void mghash(void *state, const void *input)
|
||||
{
|
||||
sph_groestl512_context ctx_groestl;
|
||||
sph_sha256_context ctx_sha2;
|
||||
|
@ -331,7 +331,7 @@ void sha256_hash512(unsigned char *hash, const unsigned char *data)
|
||||
be32enc((uint32_t *)hash + i, S[i]);
|
||||
}
|
||||
|
||||
inline void pluckrehash(void *state, const void *input)
|
||||
void pluckrehash(void *state, const void *input)
|
||||
{
|
||||
|
||||
int i,j;
|
||||
|
@ -55,7 +55,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void quarkhash(void *state, const void *input)
|
||||
void quarkhash(void *state, const void *input)
|
||||
{
|
||||
sph_blake512_context ctx_blake;
|
||||
sph_bmw512_context ctx_bmw;
|
||||
|
@ -80,7 +80,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void qhash(void *state, const void *input)
|
||||
void qhash(void *state, const void *input)
|
||||
{
|
||||
init_Qhash_contexts();
|
||||
|
||||
|
@ -55,7 +55,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void sifhash(void *state, const void *input)
|
||||
void sifhash(void *state, const void *input)
|
||||
{
|
||||
sph_blake512_context ctx_blake;
|
||||
sph_bmw512_context ctx_bmw;
|
||||
|
@ -75,7 +75,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void talkhash(void *state, const void *input)
|
||||
void talkhash(void *state, const void *input)
|
||||
{
|
||||
init_Nhash_contexts();
|
||||
|
||||
|
@ -56,7 +56,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void twehash(void *state, const void *input)
|
||||
void twehash(void *state, const void *input)
|
||||
{
|
||||
sph_fugue256_context ctx_fugue;
|
||||
sph_shavite256_context ctx_shavite;
|
||||
|
@ -72,7 +72,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len)
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void whirlcoin_hash(void *state, const void *input)
|
||||
void whirlcoin_hash(void *state, const void *input)
|
||||
{
|
||||
init_whirlcoin_hash_contexts();
|
||||
|
||||
|
@ -104,7 +104,7 @@ static inline void be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len
|
||||
#ifdef __APPLE_CC__
|
||||
static
|
||||
#endif
|
||||
inline void x14hash(void *state, const void *input)
|
||||
void x14hash(void *state, const void *input)
|
||||
{
|
||||
init_X14hash_contexts();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user