mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Add Coccinelle patch for detecing places where CEIL_DIV should be used.
This commit is contained in:
committed by
Nick Mathewson
parent
7c3e980fb9
commit
25eaf77033
@@ -0,0 +1,6 @@
|
||||
@@
|
||||
expression n, d;
|
||||
@@
|
||||
|
||||
- (((n) + (d) - 1) / (d))
|
||||
+ CEIL_DIV(n, d)
|
||||
Reference in New Issue
Block a user