xref: /aosp_15_r20/external/coreboot/src/commonlib/include/commonlib/sort.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _COMMONLIB_SORT_H_
3 #define _COMMONLIB_SORT_H_
4 
5 #include <stddef.h>
6 
7 typedef enum {
8 	NUM_ASCENDING,
9 	NUM_DESCENDING
10 } sort_order_t;
11 
12 void bubblesort(int *v, size_t num_entries, sort_order_t order);
13 
14 #endif /* _COMMONLIB_SORT_H_ */
15