mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-04 21:57:30 +00:00
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>
This commit is contained in:
parent
c233e91b0f
commit
bd6d15769e
2 changed files with 6 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue