mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
utils: Add round up 128 macro
This commit is contained in:
parent
0199cd5dbf
commit
59bb1f58bb
1 changed files with 9 additions and 0 deletions
|
@ -814,6 +814,15 @@ GST_WRITE_DOUBLE_BE(guint8 *data, gdouble num)
|
|||
* Rounds an integer value up to the next multiple of 64.
|
||||
*/
|
||||
#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:
|
||||
|
|
Loading…
Reference in a new issue