[vlc-commits] include: remove unused CEIL and PAD macros

Rémi Denis-Courmont git at videolan.org
Sat Nov 4 13:09:33 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov  4 14:09:13 2017 +0200| [85ef8b747dce87e51d00540cfd5a220250aff6b1] | committer: Rémi Denis-Courmont

include: remove unused CEIL and PAD macros

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85ef8b747dce87e51d00540cfd5a220250aff6b1
---

 include/vlc_common.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/include/vlc_common.h b/include/vlc_common.h
index 78c5db1304..199404d164 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -495,12 +495,6 @@ struct vlc_common_members
  * Macros and inline functions
  *****************************************************************************/
 
-/* CEIL: division with round to nearest greater integer */
-#define CEIL(n, d)  ( ((n) / (d)) + ( ((n) % (d)) ? 1 : 0) )
-
-/* PAD: PAD(n, d) = CEIL(n ,d) * d */
-#define PAD(n, d)   ( ((n) % (d)) ? ((((n) / (d)) + 1) * (d)) : (n) )
-
 /* __MAX and __MIN: self explanatory */
 #ifndef __MAX
 #   define __MAX(a, b)   ( ((a) > (b)) ? (a) : (b) )



More information about the vlc-commits mailing list