diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-27 00:58:05 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-27 01:03:41 +0200 |
| commit | af55803d0dff9eb692c760c8d486e736c945061d (patch) | |
| tree | 0875a1112bf98304e445e0544c4309670d6f4769 /libffwd/alloc.c | |
| parent | 0f861b7f3098750ddee4f6570f3be228d1da5320 (diff) | |
| download | ffwd-af55803d0dff9eb692c760c8d486e736c945061d.tar.gz ffwd-af55803d0dff9eb692c760c8d486e736c945061d.zip | |
chore: clean up comment formatting and wording
Diffstat (limited to 'libffwd/alloc.c')
| -rw-r--r-- | libffwd/alloc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libffwd/alloc.c b/libffwd/alloc.c index 6af854a..828258e 100644 --- a/libffwd/alloc.c +++ b/libffwd/alloc.c @@ -4,10 +4,11 @@ #include <stdint.h> #include <limits.h> -/* Sequence-capacity growth policy for the forward-pass workspaces: for new - * growth, never allocate fewer than the minimum, and round up to the - * granularity so small length changes do not trigger a realloc on every call. - * Existing larger capacity is preserved. */ +/* Sequence-capacity growth policy for the forward-pass workspaces: + * For new growth: + * - never allocate less than the minimum required size. + * - round up to the granularity so small length changes do not trigger a realloc on every call. + * - keep existing capacity if it is already larger. */ #define FFWD_MIN_WORKSPACE_SEQ_CAP 16 #define FFWD_WORKSPACE_SEQ_GRANULARITY 16 |
