diff options
author | Dave Airlie | 2017-09-29 09:13:27 +0200 |
---|---|---|
committer | Alex Deucher | 2017-09-29 19:03:49 +0200 |
commit | bd6d15769e6dcd22c57224b67376e1c6fb44b04f (patch) | |
tree | fc3249684155e1d07397d2661d89854b48616429 /drivers/gpu/drm/amd/display/include | |
parent | amdgpu/dc: use the builtin constant p trick on the 31/32 fixed point. (diff) | |
download | kernel-qcow2-linux-bd6d15769e6dcd22c57224b67376e1c6fb44b04f.tar.gz kernel-qcow2-linux-bd6d15769e6dcd22c57224b67376e1c6fb44b04f.tar.xz kernel-qcow2-linux-bd6d15769e6dcd22c57224b67376e1c6fb44b04f.zip |
amdgpu/dc: inline fixed31_32 div_int
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/include')
-rw-r--r-- | drivers/gpu/drm/amd/display/include/fixed31_32.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/display/include/fixed31_32.h b/drivers/gpu/drm/amd/display/include/fixed31_32.h index 2c9e2231ef06..3248f699daf2 100644 --- a/drivers/gpu/drm/amd/display/include/fixed31_32.h +++ b/drivers/gpu/drm/amd/display/include/fixed31_32.h @@ -308,9 +308,12 @@ struct fixed31_32 dal_fixed31_32_sqr( * @brief * result = arg1 / arg2 */ -struct fixed31_32 dal_fixed31_32_div_int( - struct fixed31_32 arg1, - int64_t arg2); +static inline struct fixed31_32 dal_fixed31_32_div_int(struct fixed31_32 arg1, + int64_t arg2) +{ + return dal_fixed31_32_from_fraction(arg1.value, + dal_fixed31_32_from_int(arg2).value); +} /* * @brief |