mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
5ca792c40e
For now, just bsearch (normal and fuzzy), qsort, and prefixsum (not in C's stdlib that I know of, but I think having native implementations of float and int prefix sums will be useful.
11 lines
422 B
R
11 lines
422 B
R
#include <stdlib.h>
|
|
|
|
void *bsearch (void *key, void *array, int nmemb, int size,
|
|
int (*compare) (void *a, void *b)) = #0;
|
|
void *fbsearch (void *key, void *array, int nmemb, int size,
|
|
int (*compare) (void *a, void *b)) = #0;
|
|
void *qsort (void *array, int nmemb, int size,
|
|
int (*compare) (void *a, void *b)) = #0;
|
|
|
|
void prefixsum (int *array, int count) = #0;
|
|
void prefixsum (float *array, int count) = #0;
|