mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-26 09:56:29 -05:00
More efficient info bucket management
Logged at every state_read() and state_write()
This commit is contained in:
parent
83b1c9bf3b
commit
d5b5a9bcbf
13 changed files with 375 additions and 495 deletions
|
|
@ -273,17 +273,5 @@ static inline int bit_vect_test(bit_vect_t* bit_vect, size_t off)
|
|||
unsigned muldiv(uint64_t v, uint64_t mul, uint64_t div);
|
||||
unsigned muldiv_upper(uint64_t v, uint64_t mul, uint64_t div);
|
||||
|
||||
/****************************************************************************/
|
||||
/* sort */
|
||||
|
||||
/**
|
||||
* Sort an array of uint64_t integers in-place
|
||||
* Optimized for arrays with many duplicate values
|
||||
*
|
||||
* @param arr Pointer to array of uint64_t
|
||||
* @param n Number of elements in the array
|
||||
*/
|
||||
void sort_time(time_t* arr, size_t n);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue