summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2016-01-22 17:07:25 -0500
committerLuis Henriques <luis.henriques@canonical.com>2016-02-25 10:34:40 +0000
commitaf2994588b9f9a31b760b103b477908f8b101a74 (patch)
tree033ffebdf7f37366cb7045ab9010c019a8bb7764 /include/linux
parent56e21c4eaa741ea16051795948915a14adef710b (diff)
drm: Add drm_fixp_from_fraction and drm_fixp2int_ceil
commit 64566b5e767f9bc3161055ca1b443a51afb52aad upstream. 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> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions