Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd6d1576 authored by Dave Airlie's avatar Dave Airlie Committed by Alex Deucher
Browse files

amdgpu/dc: inline fixed31_32 div_int

parent c233e91b
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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)
{
+6 −3
Original line number Diff line number Diff line
@@ -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