From 37cbaef9ceb828c667da8f398027ba5415ee7475 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 13:11:00 +0200 Subject: Rename CPU library API and sources to langdet --- libffwd/alloc.h | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 libffwd/alloc.h (limited to 'libffwd/alloc.h') diff --git a/libffwd/alloc.h b/libffwd/alloc.h deleted file mode 100644 index d3ef81a..0000000 --- a/libffwd/alloc.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef FFWD_ALLOC_H -#define FFWD_ALLOC_H - -#include - -/* Checked size arithmetic and typed allocation helpers. - * Return -1 or NULL on overflow/allocation failure. - * realloc_* leave the original pointer unchanged on failure. */ - -/* out = a * b, or -1 if the product overflows size_t. */ -int mul_size(size_t a, size_t b, size_t *out); - -/* Grow sequence capacity without shrinking. */ -int grow_cap(int current, int needed, int *out); - -/* realloc *ptr to hold count floats; *ptr unchanged on failure. */ -int realloc_floats(float **ptr, size_t count); - -/* realloc *ptr to hold rows*cols floats; -1 on negative dims/overflow/failure. */ -int realloc_floats_2d(float **ptr, int rows, int cols); - -#endif /* FFWD_ALLOC_H */ -- cgit v1.3.1