Changeset 0e60443 in mainline
- Timestamp:
- 2019-02-08T12:55:28Z (6 years ago)
- Children:
- d64303b
- Parents:
- bc694b0
- git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-01-12 18:51:12)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-08 12:55:28)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/gsort.c
rbc694b0 r0e60443 33 33 /** 34 34 * @file 35 * @brief Sorting functions.35 * @brief Gnome Sort. 36 36 * 37 * This files contains functions implementing several sorting 38 * algorithms (e.g. quick sort and gnome sort). 37 * This file contains an implementation of gnome sort 39 38 * 40 39 */ … … 80 79 if ((i != 0) && 81 80 (cmp(INDEX(data, i, elem_size), 82 INDEX(data, i - 1, elem_size), arg) == -1)) {81 INDEX(data, i - 1, elem_size), arg) <= -1)) { 83 82 memcpy(slot, INDEX(data, i, elem_size), elem_size); 84 83 memcpy(INDEX(data, i, elem_size), INDEX(data, i - 1, elem_size),
Note:
See TracChangeset
for help on using the changeset viewer.