diff options
author | Maíra Canal <mcanal@igalia.com> | 2023-05-12 13:40:44 +0300 |
---|---|---|
committer | Maíra Canal <mairacanal@riseup.net> | 2023-05-15 16:58:10 +0300 |
commit | 8b25320887d7feac98875546ea0f521628b745bb (patch) | |
tree | 4a1e72888735fdbb59b886610b81636b16fe9410 /drivers | |
parent | 812562b8d881ce6d33fed8052b3a10b718430fb5 (diff) | |
download | linux-8b25320887d7feac98875546ea0f521628b745bb.tar.xz |
drm: Add fixed-point helper to get rounded integer values
Create a new fixed-point helper to allow us to return the rounded value
of our fixed point value.
[v2]:
* Create the function drm_fixp2int_round() (Melissa Wen).
[v3]:
* Use drm_fixp2int() instead of shifting manually (Arthur Grillo).
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Arthur Grillo <arthurgrillo@riseup.net>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512104044.65034-1-mcanal@igalia.com
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions