mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Add Coccinelle patch for detecing places where CEIL_DIV should be used.
This commit is contained in:
parent
7c3e980fb9
commit
25eaf77033
6
scripts/coccinelle/ceil_div.cocci
Normal file
6
scripts/coccinelle/ceil_div.cocci
Normal file
@ -0,0 +1,6 @@
|
||||
@@
|
||||
expression n, d;
|
||||
@@
|
||||
|
||||
- (((n) + (d) - 1) / (d))
|
||||
+ CEIL_DIV(n, d)
|
Loading…
Reference in New Issue
Block a user