summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--isp/tools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/isp/tools.h b/isp/tools.h
index af29dd9..30bd14c 100644
--- a/isp/tools.h
+++ b/isp/tools.h
@@ -65,6 +65,8 @@
__val > __max ? __max : __val; \
})
+#define div_round_up(num, denom) (((num) + (denom) - 1) / (denom))
+
#define container_of(ptr, type, member) \
(type *)((char *)(ptr) - offsetof(type, member))