• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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