aboutsummaryrefslogtreecommitdiff
path: root/util.h
blob: c4496bd14893d914693a71cdf1c51e20334ae8a5 (plain)
1
2
3
4
5
#pragma once

#define ALEN(v) (sizeof(v) / sizeof((v)[0]))
#define min(x, y) ((x) < (y) ? (x) : (y))
#define max(x, y) ((x) > (y) ? (x) : (y))