Reformatted code; made paths in generated documentation relative.
This commit is contained in:
parent
222368bf64
commit
08a7c4153c
24 changed files with 496 additions and 716 deletions
|
|
@ -170,7 +170,7 @@ and these came close:
|
|||
hashlittle() has to dance around fitting the key bytes into registers.
|
||||
--------------------------------------------------------------------
|
||||
*/
|
||||
uint32_t hashword( const uint32_t * k, /* the key, an array of uint32_t values */
|
||||
uint32_t hashword( const uint32_t *k, /* the key, an array of uint32_t values */
|
||||
size_t length, /* the length of the key, in uint32_ts */
|
||||
uint32_t initval ) { /* the previous hash, or an arbitrary value */
|
||||
uint32_t a, b, c;
|
||||
|
|
@ -213,10 +213,10 @@ both be initialized with seeds. If you pass in (*pb)==0, the output
|
|||
(*pc) will be the same as the return value from hashword().
|
||||
--------------------------------------------------------------------
|
||||
*/
|
||||
void hashword2( const uint32_t * k, /* the key, an array of uint32_t values */
|
||||
void hashword2( const uint32_t *k, /* the key, an array of uint32_t values */
|
||||
size_t length, /* the length of the key, in uint32_ts */
|
||||
uint32_t * pc, /* IN: seed OUT: primary hash value */
|
||||
uint32_t * pb ) { /* IN: more seed OUT: secondary hash value */
|
||||
uint32_t *pc, /* IN: seed OUT: primary hash value */
|
||||
uint32_t *pb ) { /* IN: more seed OUT: secondary hash value */
|
||||
uint32_t a, b, c;
|
||||
|
||||
/* Set up the internal state */
|
||||
|
|
@ -538,8 +538,8 @@ uint32_t hashlittle( const void *key, size_t length, uint32_t initval ) {
|
|||
*/
|
||||
void hashlittle2( const void *key, /* the key to hash */
|
||||
size_t length, /* length of the key */
|
||||
uint32_t * pc, /* IN: primary initval, OUT: primary hash */
|
||||
uint32_t * pb ) { /* IN: secondary initval, OUT: secondary hash */
|
||||
uint32_t *pc, /* IN: primary initval, OUT: primary hash */
|
||||
uint32_t *pb ) { /* IN: secondary initval, OUT: secondary hash */
|
||||
uint32_t a, b, c; /* internal state */
|
||||
union {
|
||||
const void *ptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue