Commit 40aee5f1 authored by Ariadne Conill's avatar Ariadne Conill

apk_defines: implement mulmod()

parent 9325eb72
......@@ -121,6 +121,14 @@ static inline size_t muldiv(size_t a, size_t b, size_t c)
tmp /= c;
return (size_t) tmp;
}
static inline size_t mulmod(size_t a, size_t b, size_t c)
{
unsigned long long tmp;
tmp = a;
tmp *= b;
tmp %= c;
return (size_t) tmp;
}
typedef void (*apk_progress_cb)(void *cb_ctx, size_t);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment