[utils] Add ply_round_to_multiple macro

We'll need something like this for rowstride calculation
This commit is contained in:
Ray Strode 2009-09-21 13:49:43 -04:00
parent 4c45ba1df7
commit 069839a58b

View file

@ -46,6 +46,9 @@ typedef void (* ply_module_function_t) (void);
typedef intptr_t ply_daemon_handle_t;
#ifndef PLY_HIDE_FUNCTION_DECLARATIONS
#define ply_round_to_multiple(n, m) (((n) + (((m) - 1))) & ~((m) - 1))
bool ply_open_unidirectional_pipe (int *sender_fd,
int *receiver_fd);
int ply_connect_to_unix_socket (const char *path,