OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "src/vm/sort.h" | 5 #include "src/vm/sort.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "src/shared/assert.h" | 9 #include "src/shared/assert.h" |
10 #include "src/shared/random.h" | 10 #include "src/shared/random.h" |
11 | 11 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } else { | 122 } else { |
123 VoidSort(start, partition_index, element_size, compare); | 123 VoidSort(start, partition_index, element_size, compare); |
124 start = partition; | 124 start = partition; |
125 elements -= partition_index; | 125 elements -= partition_index; |
126 } | 126 } |
127 } | 127 } |
128 InsertionSort(start, elements, element_size, compare); | 128 InsertionSort(start, elements, element_size, compare); |
129 } | 129 } |
130 | 130 |
131 } // namespace fletch | 131 } // namespace fletch |
OLD | NEW |