Skip to content

Commit

Permalink
Merge branch 'main' of github.com:abxh/dsa
Browse files Browse the repository at this point in the history
  • Loading branch information
abxh committed Sep 3, 2024
2 parents 4588f5e + eab2ae2 commit 584b127
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions lib/align_forward.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ static inline uintptr_t align_forward(const uintptr_t ptr, const size_t align)

// % is defined so for r = (p % a), q: some integer
// p = q * a + r
// <=> r = p - q * a

// assuming r != 0:
//
// q*(a+1)
// (q+1)*a
// ----------->
// r a-r
// ----> ----->
Expand Down
3 changes: 0 additions & 3 deletions lib/fhashtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
* @brief Iterate over the non-empty slots in the hashtable in arbitary order.
* @warning Modifying the hashtable under the iteration may result in errors.
*
* temporary variables visible in scope:
* @li _index
*
* @param[in] hashtable_ptr hashtable pointer.
* @param[in] index Temporary indexing variable. Should be `uint32_t`
* @param[out] key_ Current key. Should be `KEY_TYPE`.
Expand Down

0 comments on commit 584b127

Please sign in to comment.