Skip to content
Snippets Groups Projects
Unverified Commit 0e5a5d31 authored by Jan-Niklas Burfeind's avatar Jan-Niklas Burfeind Committed by GitHub
Browse files

Merge pull request #2751 from AiyionPrime/c-indentation

C indentation
parents 8c345910 ab89bacb
No related branches found
No related tags found
No related merge requests found
Showing
with 1047 additions and 1049 deletions
...@@ -442,7 +442,6 @@ uint32_t hashlittle( const void *key, size_t length, uint32_t initval) ...@@ -442,7 +442,6 @@ uint32_t hashlittle( const void *key, size_t length, uint32_t initval)
case 0 : return c; case 0 : return c;
} }
} }
final(a,b,c); final(a,b,c);
return c; return c;
} }
...@@ -671,7 +670,7 @@ uint32_t hashbig( const void *key, size_t length, uint32_t initval) ...@@ -671,7 +670,7 @@ uint32_t hashbig( const void *key, size_t length, uint32_t initval)
* does it on word boundaries, so is OK with this. But VALGRIND will * does it on word boundaries, so is OK with this. But VALGRIND will
* still catch it and complain. The masking trick does make the hash * still catch it and complain. The masking trick does make the hash
* noticeably faster for short strings (like English words). * noticeably faster for short strings (like English words).
*/ * */
#ifndef VALGRIND #ifndef VALGRIND
switch(length) switch(length)
...@@ -802,11 +801,10 @@ void driver2() ...@@ -802,11 +801,10 @@ void driver2()
{ {
for (j=0; j<8; ++j) /*------------------------ for each input bit, */ for (j=0; j<8; ++j) /*------------------------ for each input bit, */
{ {
for (m=1; m<8; ++m) /*------------ for several possible initvals, */ for (m=1; m<8; ++m) /*------------ for serveral possible initvals, */
{ {
for (l=0; l<HASHSTATE; ++l) for (l=0; l<HASHSTATE; ++l)
e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0); e[l]=f[l]=g[l]=h[l]=x[l]=y[l]=~((uint32_t)0);
/*---- check that every output bit is affected by that input bit */ /*---- check that every output bit is affected by that input bit */
for (k=0; k<MAXPAIR; k+=2) for (k=0; k<MAXPAIR; k+=2)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment