sort

sort algorithms for any type of array
git clone https://noulin.net/git/sort.git
Log | Files | Refs | README | LICENSE

commit 62fcdf058a7ff91102f18bafb8f1ed0618998c08
parent 9f52810248be3f2df6bc953a512921348651cd63
Author: Remy Noulin <loader2x@gmail.com>
Date:   Wed, 27 Sep 2023 08:19:32 +0200

print message when zeroBuf fails

package.yml | 2 +-
radixsort.h | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)

Diffstat:
Mpackage.yml | 2+-
Mradixsort.h | 8++++----
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/package.yml b/package.yml @@ -1,6 +1,6 @@ --- name: sort - version: 0.0.3 + version: 0.0.4 description: "sorting algorithms for any type of array: radixsort, flashsort" bin: ./sort.h cflags: "-O3 -std=gnu11 -fPIC -pipe" diff --git a/radixsort.h b/radixsort.h @@ -139,7 +139,7 @@ scope void radixsort##name(elemType *arr, size_t size, size_t digit, size_t stac size_t ends[radixyStop];\ size_t digt = sizeof(radixsortAt(&arr[0])) - digit - 1;\ \ - zeroBuf(counts, sizeof(counts));\ + pError0(zeroBuf(counts, sizeof(counts)));\ \ /* compute counts */\ {range(x, size) {\ @@ -285,7 +285,7 @@ scope void radixsort##name(elemType *arr, size_t size, size_t digit, size_t stac radixy##name##Argst rdxArgs[radixyStop]; /* arguments for functions in the threadpool */\ size_t rdxArgsIdx = 0;\ \ - zeroBuf(counts, sizeof(counts));\ + pError0(zeroBuf(counts, sizeof(counts)));\ \ /* compute counts */\ {range(x, size) {\ @@ -432,7 +432,7 @@ void radixsortS##name(elemType *arr, size_t size, size_t digit, u8 charStart, u1 size_t ends[charStop+1];\ size_t digt = digit;\ \ - zeroBuf(counts, sizeof(counts));\ + pError0(zeroBuf(counts, sizeof(counts)));\ \ /* compute counts */\ {range(x, size) {\ @@ -627,7 +627,7 @@ void radixsortS##name(elemType *arr, size_t size, size_t digit, u8 charStart, u1 radixyS##name##Argst rdxArgs[charStop+1]; /* arguments for functions in the threadpool */\ size_t rdxArgsIdx = 0;\ \ - zeroBuf(counts, sizeof(counts));\ + pError0(zeroBuf(counts, sizeof(counts)));\ \ /* compute counts */\ {range(x, size) {\