Thread (17 messages) 17 messages, 4 authors, 2026-02-13

Re: [PATCH v4 1/4] uapi: Provide DIV_ROUND_CLOSEST()

From: Nícolas F. R. A. Prado <hidden>
Date: 2026-01-26 18:33:44
Also in: dri-devel, linux-rockchip, lkml

On Fri, 2025-12-19 at 23:46 +0200, Cristian Ciocaltea wrote:
Currently DIV_ROUND_CLOSEST() is only available for the kernel via
include/linux/math.h.

Expose it to userland as well by adding __KERNEL_DIV_ROUND_CLOSEST()
as
a common definition in uapi.

Additionally, ensure it allows building ISO C applications by
switching
from the 'typeof' GNU extension to the ISO-friendly __typeof__.

Signed-off-by: Cristian Ciocaltea <redacted>
Reviewed-by: Nícolas F. R. A. Prado <redacted>

-- 
Thanks,

Nícolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help