diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-04-02 21:07:10 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-04-02 21:07:10 +1100 |
| commit | 8ea1a6dffc327d2f68a50e00aebd58000181853f (patch) | |
| tree | 40962baad102163cb881afcc743715b775d01f42 /include | |
| parent | 69b4c8a7b8fbf1ed9fa4422ea6bbd4865297166f (diff) | |
feat(math): add math core and replace FF_ABS macro with ff_absi
Diffstat (limited to 'include')
| -rw-r--r-- | include/tinyff/common.h | 6 | ||||
| -rw-r--r-- | include/tinyff/image/png.h | 1 |
2 files changed, 1 insertions, 6 deletions
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 <tinyff/stream.h> #include <tinyff/image/generic.h> #include <tinyff/dbg.h> +#include <tinyff/math/core.h> |
