0
0
mirror of https://gitlab.torproject.org/tpo/core/tor.git synced 2024-09-20 04:12:13 +02:00

Add Coccinelle patch for detecing places where CEIL_DIV should be used.

This commit is contained in:
Alexander Færøy 2017-06-05 14:45:53 +00:00 committed by Nick Mathewson
parent 7c3e980fb9
commit 25eaf77033

View File

@ -0,0 +1,6 @@
@@
expression n, d;
@@
- (((n) + (d) - 1) / (d))
+ CEIL_DIV(n, d)