X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/089d061f2d8dd77840db5968992144474cb36b7c..e4b65f5bc16eef150efb5327d9aa9e2e48e999be:/common/bucketsort.c diff --git a/common/bucketsort.c b/common/bucketsort.c index c4199803..162869e3 100644 --- a/common/bucketsort.c +++ b/common/bucketsort.c @@ -1,24 +1,6 @@ #include "bucketsort.h" -bool bucket_malloc(bucket_array_t bucket) { - for (uint32_t i = 0; i < 2; i++) { - for (uint32_t j = 0; j <= 0xff; j++) { - bucket[i][j].head = malloc(sizeof(uint32_t)<<14); - if (!bucket[i][j].head) { - return false; - } - } - } - return true; -} - -void bucket_free(bucket_array_t bucket) { - for (uint8_t i = 0; i < 2; i++) - for (uint8_t j = 0; j <= 0xff; j++) - free(bucket[i][j].head); -} - -void bucket_sort_intersect(uint32_t* const estart, uint32_t* const estop, +extern void bucket_sort_intersect(uint32_t* const estart, uint32_t* const estop, uint32_t* const ostart, uint32_t* const ostop, bucket_info_t *bucket_info, bucket_array_t bucket) {