summaryrefslogtreecommitdiff
path: root/src/math.h
blob: 79b52f00e887fd2fbcd1260a00ff8a630eef99d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
int
add_size(const size_t x, const size_t y, size_t *const out);

int
mul_size(const size_t x, const size_t y, size_t *const out);

inline size_t
max_size(size_t x, size_t y) {
	return x > y ? x : y;
}