Browse Source

Remove inline from hash functions

tweaked
elbandi 9 years ago
parent
commit
72a15389c9
  1. 2
      algorithm/animecoin.c
  2. 2
      algorithm/bitblock.c
  3. 4
      algorithm/blake256.c
  4. 4
      algorithm/blakecoin.c
  5. 2
      algorithm/credits.c
  6. 2
      algorithm/darkcoin.c
  7. 2
      algorithm/fresh.c
  8. 2
      algorithm/fuguecoin.c
  9. 2
      algorithm/groestlcoin.c
  10. 2
      algorithm/inkcoin.c
  11. 2
      algorithm/lyra2re.c
  12. 2
      algorithm/lyra2rev2.c
  13. 2
      algorithm/marucoin.c
  14. 2
      algorithm/myriadcoin-groestl.c
  15. 2
      algorithm/pluck.c
  16. 2
      algorithm/quarkcoin.c
  17. 2
      algorithm/qubitcoin.c
  18. 2
      algorithm/sifcoin.c
  19. 2
      algorithm/talkcoin.c
  20. 2
      algorithm/twecoin.c
  21. 2
      algorithm/whirlcoin.c
  22. 2
      algorithm/x14.c

2
algorithm/animecoin.c

@ -55,7 +55,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/bitblock.c

@ -109,7 +109,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

4
algorithm/blake256.c

@ -43,7 +43,7 @@ @@ -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) @@ -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);

4
algorithm/blakecoin.c

@ -43,7 +43,7 @@ @@ -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) @@ -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);

2
algorithm/credits.c

@ -37,7 +37,7 @@ static const uint32_t diff1targ = 0x0000ffff; @@ -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];

2
algorithm/darkcoin.c

@ -94,7 +94,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

2
algorithm/fresh.c

@ -78,7 +78,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

2
algorithm/fuguecoin.c

@ -50,7 +50,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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);

2
algorithm/groestlcoin.c

@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/inkcoin.c

@ -93,7 +93,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/lyra2re.c

@ -52,7 +52,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/lyra2rev2.c

@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/marucoin.c

@ -103,7 +103,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

2
algorithm/myriadcoin-groestl.c

@ -54,7 +54,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/pluck.c

@ -331,7 +331,7 @@ void sha256_hash512(unsigned char *hash, const unsigned char *data) @@ -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;

2
algorithm/quarkcoin.c

@ -55,7 +55,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/qubitcoin.c

@ -80,7 +80,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

2
algorithm/sifcoin.c

@ -55,7 +55,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/talkcoin.c

@ -75,7 +75,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

2
algorithm/twecoin.c

@ -56,7 +56,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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;

2
algorithm/whirlcoin.c

@ -72,7 +72,7 @@ be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) @@ -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();

2
algorithm/x14.c

@ -104,7 +104,7 @@ static inline void be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len @@ -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…
Cancel
Save