This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository terminology.
View the commit online.
commit a0a33d089645e6f1a85ac3f30895c50e08a2291f
Author: Boris Faure <[email protected]>
AuthorDate: Sun Jun 19 21:52:00 2022 +0200
add div_round_up.cocci
---
scripts/coccinelle/div_round_up.cocci | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/scripts/coccinelle/div_round_up.cocci b/scripts/coccinelle/div_round_up.cocci
new file mode 100644
index 0000000..2af6d42
--- /dev/null
+++ b/scripts/coccinelle/div_round_up.cocci
@@ -0,0 +1,11 @@
+@@
+_expression_ n, d;
+@@
+
+(
+- (((n + d) - 1) / d)
++ DIV_ROUND_UP(n, d)
+|
+- ((n + (d - 1)) / d)
++ DIV_ROUND_UP(n, d)
+)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.