This website works better with JavaScript
Etusivu
Tutki
Apua
Kirjaudu sisään
piros
/
tor
Tarkkaile
3
Äänestä
0
Fork
0
Tiedostot
Ongelmat
0
Pull-pyynnöt
0
Wiki
Selaa lähdekoodia
Add Coccinelle patch for detecing places where CEIL_DIV should be used.
Alexander Færøy
7 vuotta sitten
vanhempi
7c3e980fb9
commit
25eaf77033
1 muutettua tiedostoa
jossa
6 lisäystä
ja
0 poistoa
Jaettu näkymä
Näytä diff tilastot
6
0
scripts/coccinelle/ceil_div.cocci
+ 6
- 0
scripts/coccinelle/ceil_div.cocci
Näytä tiedosto
@@ -0,0 +1,6 @@
+@@
+expression n, d;
+@@
+
+- (((n) + (d) - 1) / (d))
++ CEIL_DIV(n, d)