X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Farray.h;h=eab98dcaa908e7f37ca1a5c5e62692f8c7232c80;hb=17d00f9ba94128390819277e5d614a03e98aade0;hp=fbebd56835f0ba59bf4afc522e17f7240e7e1c50;hpb=5dbf5abcbed01f04422d4dead1c0ae0bb7efde4f;p=pspp diff --git a/src/libpspp/array.h b/src/libpspp/array.h index fbebd56835..eab98dcaa9 100644 --- a/src/libpspp/array.h +++ b/src/libpspp/array.h @@ -1,4 +1,4 @@ -/* +/* PSPP - a program for statistical analysis. Copyright (C) 2017 Free Software Foundation, Inc. @@ -96,7 +96,7 @@ size_t partition (void *array, size_t count, size_t size, for the first TRUE_CNT elements and zero for the remaining elements. AUX is passed as auxiliary data to PREDICATE. */ bool is_partitioned (const void *array, size_t count, size_t size, - size_t true_cnt, + size_t n_trues, algo_predicate_func *predicate, const void *aux); /* Randomly reorders ARRAY, which contains COUNT elements of SIZE @@ -247,5 +247,8 @@ void sort_heap (void *array, size_t count, size_t size, bool is_heap (const void *array, size_t count, size_t size, algo_compare_func *compare, const void *aux); +/* Reverses the order of ARRAY, which contains COUNT elements of SIZE bytes + each. */ +void reverse_array (void *array, size_t count, size_t size); #endif /* algorithm.h */