utils: Add round up 128 macro

This commit is contained in:
Nicolas Dufresne 2013-11-13 17:06:23 -05:00 committed by Wim Taymans
parent 0199cd5dbf
commit 59bb1f58bb

View file

@ -814,6 +814,15 @@ GST_WRITE_DOUBLE_BE(guint8 *data, gdouble num)
* Rounds an integer value up to the next multiple of 64. * Rounds an integer value up to the next multiple of 64.
*/ */
#define GST_ROUND_UP_64(num) (((num)+63)&~63) #define GST_ROUND_UP_64(num) (((num)+63)&~63)
/**
* GST_ROUND_UP_128:
* @num: integer value to round up
*
* Rounds an integer value up to the next multiple of 128.
* Since: 1.4
*/
#define GST_ROUND_UP_128(num) (((num)+127)&~127)
/** /**
* GST_ROUND_DOWN_2: * GST_ROUND_DOWN_2: