Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
320a16bd
Commit
320a16bd
authored
Nov 18, 2015
by
Misbah Mubarak
Browse files
modifying the hashing function
parent
345b19c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/models/networks/model-net/dragonfly.c
View file @
320a16bd
...
...
@@ -300,7 +300,7 @@ static int dragonfly_hash_func(void *k, int table_size)
key
=
key
*
21
;
key
=
~
key
^
(
tmp
->
sender_id
>>
4
);
key
=
key
*
tmp
->
sender_id
;
return
(
int
)(
key
&
(
uint64_t
)(
table_size
-
1
)
);
return
(
int
)(
key
%
table_size
);
}
/* convert GiB/s and bytes to ns */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment