[libc-commits] [libc] [llvm] [libc] Improve qsort (PR #120450)
    Lukas Bergdoll via libc-commits 
    libc-commits at lists.llvm.org
       
    Sun Dec 29 06:08:53 PST 2024
    
    
  
================
@@ -15,9 +15,13 @@
 #define LIBC_QSORT_QUICK_SORT 1
 #define LIBC_QSORT_HEAP_SORT 2
 
+#ifdef LIBC_OPTIMIZE_FOR_SIZE
+#define LIBC_QSORT_IMPL LIBC_QSORT_HEAP_SORT
+#else
----------------
Voultapher wrote:
I agree let's pull it out.
https://github.com/llvm/llvm-project/pull/120450
    
    
More information about the libc-commits
mailing list