diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-07-27 17:17:56 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-07-27 17:17:56 -0400 |
| commit | bb912b081ed339e4a5419bd3d2ffd7465f2f72d3 (patch) | |
| tree | 7f34b3af1a72672de1d12c8e23dda419c398dce3 /docs/application/memory.md | |
| parent | 003119b9f285e5610f56186bce845441409265ae (diff) | |
bottom up redesign
Diffstat (limited to 'docs/application/memory.md')
| -rw-r--r-- | docs/application/memory.md | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/docs/application/memory.md b/docs/application/memory.md deleted file mode 100644 index e180b24..0000000 --- a/docs/application/memory.md +++ /dev/null @@ -1,39 +0,0 @@ -# Memory - ---- - -An allocator per Object definition with ring buffer pooling based - -# Single Allocation - -Once created never freed until shutdown - -# Pooling Allocations - -## Ring Buffer - -## Fixed Sized Objects - -## Dynamic Sized Objects - -Dynamically sized objects must be aligned to a power of two - -Requires a ring buffer for each power of two - -## Object Definitions - -```c -#define KPL_DYANMIC_OBJ_MIN_BITS 7 - -#define KPL_DYNAMIC_OBJ_MAX_BITS 30 - -#define KPL_DYNAMIC_OBJ_MIN_SIZE (1 << KPL_DYANMIC_OBJ_MIN_BITS) - -#define KPL_DYNAMIC_OBJ_MAX_SIZE (1 << KPL_DYNAMIC_OBJ_MAX_BITS) - -#define KPL_DYNAMIC_OBJ_HEADER() int32_t obj_size; - -typedef struct { - KPL_DYNAMIC_OBJ_HEADER(); -} kpl_dynamic_obj; -``` |
