summaryrefslogtreecommitdiffstats
path: root/src/alloc.c
Commit message (Collapse)AuthorAgeFilesLines
* prelude: Simplify attributesTavian Barnes2024-07-281-1/+1
|
* config: Check for aligned_alloc()Tavian Barnes2024-04-191-3/+3
|
* Rename config.h to prelude.hTavian Barnes2024-04-191-1/+1
|
* config: New variadic attr(...) macroTavian Barnes2023-12-181-1/+1
|
* alloc: New helpers for growing dynamic arraysTavian Barnes2023-11-231-22/+44
|
* alloc: New helpers for aligned reallocationTavian Barnes2023-11-231-4/+38
| | | | | | There is no aligned_realloc(), so the new xrealloc() function emulates it by manually reallocating and copying for over-aligned types. The new REALLOC_ARRAY() and REALLOC_FLEX() macros wrap xrealloc().
* alloc: New ALLOC_MAX macroTavian Barnes2023-11-231-2/+10
|
* alloc: New is_aligned() helperTavian Barnes2023-11-231-5/+5
|
* Initial support for Cosmopolitan LibcTavian Barnes2023-11-101-0/+1
|
* config: New attr_noinline and attr_cold macrosTavian Barnes2023-11-091-0/+1
|
* alloc: New varena_grow() functionTavian Barnes2023-08-311-0/+15
|
* alloc: New [v]arena_clear() functionsTavian Barnes2023-08-311-1/+15
|
* alloc: Use a different error code for size overflowsTavian Barnes2023-07-131-0/+10
| | | | This should help debuggability, and also squelches a GCC warning.
* alloc: Implement an arena for flexible structsTavian Barnes2023-06-201-0/+118
|
* alloc: Implement an arena allocatorTavian Barnes2023-06-201-0/+111
|
* alloc: New header for memory allocation utilitiesTavian Barnes2023-06-201-0/+50