Files
banan-os/userspace/libraries/LibC
Bananymous 896bb05073 LibC: Cleanup qsort implementation
Remove random template and just make qsort be a wrapper around qsort_r

Recurse only into the smaller partition. This removes the possibility of
O(n) recursion in the worst case

Use insertion sort for ranges shorter than 16 elements.

Split qsort_swap into qsort_swap_fixed and qsort_swap_general
- fixed one handles 1, 2, 4 and 8 byte elements which can be done directly
with mov instructions
- general copies 64 bytes at a time followed by a single copy for the
  rest. the 64 byte chunk loop gets nicely optimized into sse
2026-07-07 04:39:06 +03:00
..
2025-11-07 14:54:53 +02:00
2025-06-17 13:15:42 +03:00
2026-07-02 20:02:24 +03:00
2025-08-11 18:36:46 +03:00
2025-11-23 05:33:44 +02:00
2026-07-02 20:02:24 +03:00
2024-08-05 00:53:27 +03:00
2025-04-19 20:02:01 +03:00
2025-07-22 13:26:53 +03:00
2026-07-02 20:02:24 +03:00
2026-03-25 01:06:45 +02:00
2026-01-06 21:58:56 +02:00
2025-06-01 13:48:03 +03:00
2025-07-31 22:47:40 +03:00
2026-07-04 19:17:07 +03:00
2025-04-22 09:55:38 +03:00
2026-04-02 15:43:34 +03:00
2025-08-21 02:52:49 +03:00
2026-05-25 02:14:04 +03:00
2026-07-07 04:39:06 +03:00
2026-04-19 17:52:21 +03:00
2026-03-23 19:13:38 +02:00
2026-05-15 17:08:02 +03:00
2026-07-07 04:36:55 +03:00
2026-07-04 04:13:21 +03:00