From 7ac073a624773c8a771f7374267e784e1ff39cf8 Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Mon, 18 May 2026 16:13:35 +1000 Subject: feat(common): Implement memset implementation --- include/tinyff/common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/tinyff/common.h') diff --git a/include/tinyff/common.h b/include/tinyff/common.h index 34209e8..891f9ee 100644 --- a/include/tinyff/common.h +++ b/include/tinyff/common.h @@ -90,6 +90,13 @@ static inline void ff_memcpy(void *dest, const void *src, size_t n) } } +static inline void *ff_memset(void *dest, int ch, size_t count) { + unsigned char *p = (unsigned char *)dest; + while (count--) { + *p++ = (unsigned char)ch; + } + return dest; +} // Context bases // Default -- cgit v1.2.3