From 8ea1a6dffc327d2f68a50e00aebd58000181853f Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Thu, 2 Apr 2026 21:07:10 +1100 Subject: feat(math): add math core and replace FF_ABS macro with ff_absi --- include/tinyff/common.h | 6 ------ include/tinyff/image/png.h | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'include') diff --git a/include/tinyff/common.h b/include/tinyff/common.h index 678bda9..838caa3 100644 --- a/include/tinyff/common.h +++ b/include/tinyff/common.h @@ -64,10 +64,4 @@ typedef struct { ff_ctx* ff_init(ff_allocator* allocator); void ff_cleanup(ff_ctx* ctx); - -// Small math functions -// TODO: Implement a full math library for tinyff - -#define FF_ABS(a) (((a) < 0) ? -(a) : (a)) - #endif \ No newline at end of file diff --git a/include/tinyff/image/png.h b/include/tinyff/image/png.h index 82fba32..8ccc4e6 100644 --- a/include/tinyff/image/png.h +++ b/include/tinyff/image/png.h @@ -12,6 +12,7 @@ #include #include #include +#include -- cgit v1.2.3