sys: util: migrate all files to DIV_ROUND_UP
ceiling_fraction is deprecated, use DIV_ROUND_UP. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
53da110dbf
commit
0ebe14beb4
54 changed files with 99 additions and 99 deletions
|
@ -141,7 +141,7 @@ static bool copy_to_pbuffer(struct mpsc_pbuf_buffer *mpsc_buffer,
|
|||
*/
|
||||
uint8_t *dst_data = (uint8_t *)dst + sizeof(struct mpsc_pbuf_hdr);
|
||||
uint8_t *src_data = (uint8_t *)msg + sizeof(struct mpsc_pbuf_hdr);
|
||||
size_t hdr_wlen = ceiling_fraction(sizeof(struct mpsc_pbuf_hdr),
|
||||
size_t hdr_wlen = DIV_ROUND_UP(sizeof(struct mpsc_pbuf_hdr),
|
||||
sizeof(uint32_t));
|
||||
|
||||
dst->hdr.data = msg->buf.hdr.data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue