Searched refs:DIV_ROUNDUP (Results 1 – 2 of 2) sorted by relevance
/external/wayland/src/ |
D | connection.c | 47 #define DIV_ROUNDUP(n, a) ( ((n) + ((a) - 1)) / (a) ) macro 690 next = p + DIV_ROUNDUP(length, sizeof *p); in wl_connection_demarshal() 749 next = p + DIV_ROUNDUP(length, sizeof *p); in wl_connection_demarshal() 1005 buffer_size += 1 + DIV_ROUNDUP(size, sizeof(uint32_t)); in buffer_size_for_closure() 1014 buffer_size += (1 + DIV_ROUNDUP(size, sizeof(uint32_t))); in buffer_size_for_closure() 1076 if (p + DIV_ROUNDUP(size, sizeof *p) > end) in serialize_closure() 1080 p += DIV_ROUNDUP(size, sizeof *p); in serialize_closure() 1091 if (p + DIV_ROUNDUP(size, sizeof *p) > end) in serialize_closure() 1095 p += DIV_ROUNDUP(size, sizeof *p); in serialize_closure()
|
/external/libevent/ |
D | select.c | 72 #define DIV_ROUNDUP(x, y) (((x)+((y)-1))/(y)) macro 76 (DIV_ROUNDUP(n, NFDBITS) * sizeof(fd_mask))
|