diff options
author | Harry Wentland <harry.wentland@amd.com> | 2016-01-22 17:07:25 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-02-05 15:23:48 +1000 |
commit | 64566b5e767f9bc3161055ca1b443a51afb52aad (patch) | |
tree | 2c4c64d03f401f0f826f5abec33161155b8bb1cc /include/drm/drmP.h | |
parent | 4d6a10da79fddcf7460299ab390da74ef2b592f6 (diff) | |
download | op-kernel-dev-64566b5e767f9bc3161055ca1b443a51afb52aad.zip op-kernel-dev-64566b5e767f9bc3161055ca1b443a51afb52aad.tar.gz |
drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil
drm_fixp_from_fraction allows us to create a fixed point directly
from a fraction, rather than creating fixed point values and dividing
later. This avoids overflow of our 64 bit value for large numbers.
drm_fixp2int_ceil allows us to return the ceiling of our fixed point
value.
[airlied: squash Jordan's fix]
32-bit-build-fix: Jordan Lazare <Jordan.Lazare@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/drmP.h')
0 files changed, 0 insertions, 0 deletions