提交 bd6d1576 编写于 作者: D Dave Airlie 提交者: Alex Deucher

amdgpu/dc: inline fixed31_32 div_int

Signed-off-by: NDave Airlie <airlied@redhat.com>
Reviewed-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 c233e91b
......@@ -266,15 +266,6 @@ struct fixed31_32 dal_fixed31_32_sqr(
return res;
}
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);
}
struct fixed31_32 dal_fixed31_32_recip(
struct fixed31_32 arg)
{
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册