From bb912b081ed339e4a5419bd3d2ffd7465f2f72d3 Mon Sep 17 00:00:00 2001 From: nodist Date: Mon, 27 Jul 2026 17:17:56 -0400 Subject: bottom up redesign --- docs/application/memory.md | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 docs/application/memory.md (limited to 'docs/application/memory.md') 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; -``` -- cgit v1.2.3