[tor/master] Add Coccinelle patch for detecing places where CEIL_DIV should be used.
 
            
            
            
            
                24 Aug
                
                    2017
                
            
            
                24 Aug
                
                '17
                
            
            
            
        
    
                8:11 p.m.
            
        commit 25eaf77033cd4cc6a5241554be8951a022dd54bd Author: Alexander Færøy <ahf@torproject.org> Date: Mon Jun 5 14:45:53 2017 +0000 Add Coccinelle patch for detecing places where CEIL_DIV should be used. --- scripts/coccinelle/ceil_div.cocci | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/coccinelle/ceil_div.cocci b/scripts/coccinelle/ceil_div.cocci new file mode 100644 index 000000000..00843e82c --- /dev/null +++ b/scripts/coccinelle/ceil_div.cocci @@ -0,0 +1,6 @@ +@@ +expression n, d; +@@ + +- (((n) + (d) - 1) / (d)) ++ CEIL_DIV(n, d)
        2989
        
      
          Age (days ago)
        
      
        2989
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 nickm@torproject.org nickm@torproject.org