[libc-commits] [libc] [libc] Bound the worst-case stack usage in	qsort(). (PR #110849)
    Nick Desaulniers via libc-commits 
    libc-commits at lists.llvm.org
       
    Thu Oct  3 08:49:42 PDT 2024
    
    
  
================
@@ -92,6 +92,12 @@ class Array {
   Array make_array(size_t i, size_t s) const {
     return Array(get(i), s, elem_size, compare);
   }
+
+  // Reset this Array to point at a different interval of the same items.
+  void reset_bounds(uint8_t *a, size_t s) {
----------------
nickdesaulniers wrote:
This method, and the others should probably have the `LIBC_INLINE` macro added.
https://libc.llvm.org/dev/code_style.html#inline-functions-and-variables-defined-in-header-files
https://github.com/llvm/llvm-project/pull/110849
    
    
More information about the libc-commits
mailing list