d49a088eea
Avoid using fingerprints in minhash computation and fix write amplification Modify min-heap to use 64bit values Improve bsdiff performance Fix pointer comparison in bsdiff Use 32bit offsets in bsdiff to reduce memory usage Improve Zero RLE Encoder performance Add more buffer overflow checks in Zero RLE Decoder
14 lines
237 B
C
14 lines
237 B
C
#ifndef __HEAPQ_H_
|
|
|
|
#define __TYPE int64_t
|
|
|
|
typedef struct {
|
|
__TYPE *ary;
|
|
__TYPE len;
|
|
__TYPE tot;
|
|
} heap_t;
|
|
|
|
extern int ksmallest(__TYPE *ary, __TYPE len, heap_t *heap);
|
|
extern void reset_heap(heap_t *h, __TYPE tot);
|
|
|
|
#endif
|