Skip to content

Commit

Permalink
Fixed HopScotchHashTable.
Browse files Browse the repository at this point in the history
Todo: use bitmap to navigate through items in the same bucket.

Signed-off-by: saad0105050 <saad0105050@gmail.com>
  • Loading branch information
saad0105050 committed Sep 21, 2014
1 parent 69330e1 commit a0ab501
Show file tree
Hide file tree
Showing 5 changed files with 690 additions and 116 deletions.
2 changes: 2 additions & 0 deletions YASI_12/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@ namespace yasi{
#define DELETE_ARR_SAFE(x) {if( (x) != 0 ) delete[] (x); (x) = 0; }
#define ARR_LENGTH(x) ( sizeof( (x) )/sizeof( (x)[0] ) )

#define IS_POW_OF_TWO(x) ( ((x) >= 1) && ( ((x) & ((x)-1)) == 0) )

} // namespace yasi
Loading

0 comments on commit a0ab501

Please sign in to comment.