summaryrefslogtreecommitdiff
path: root/src/math.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-06-25 14:06:13 -0300
committerEuAndreh <eu@euandre.org>2024-06-25 14:06:13 -0300
commit0f8911e29bd68af82cd6403e2c081f939477e265 (patch)
tree03bdaa831b242cff411f785cde7421b51b5aeafb /src/math.c
parentFix clang warnings (diff)
downloadpindaiba-0f8911e29bd68af82cd6403e2c081f939477e265.tar.gz
pindaiba-0f8911e29bd68af82cd6403e2c081f939477e265.tar.xz
src/math.h: Add max_size() function
Diffstat (limited to '')
-rw-r--r--src/math.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/math.c b/src/math.c
index 4e9fee0..143a48d 100644
--- a/src/math.c
+++ b/src/math.c
@@ -41,3 +41,6 @@ mul_size(const size_t x, const size_t y, size_t *const out) {
out:
return rc;
}
+
+extern inline size_t
+max_size(const size_t x, const size_t y);