提交 07e92665 编写于 作者: H Harry Wentland 提交者: Alex Deucher

Revert "amdgpu/dc: inline dml_round_to_multiple"

This reverts commit d8c893b4.

Unfortunately these clash with our DML update from the HW guys.
Will attempt to reroll them after.
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 c73b046f
......@@ -39,4 +39,23 @@ double dml_round(double a)
return floor;
}
unsigned int dml_round_to_multiple(
unsigned int num,
unsigned int multiple,
bool up)
{
unsigned int remainder;
if (multiple == 0)
return num;
remainder = num % multiple;
if (remainder == 0)
return num;
if (up)
return (num + multiple - remainder);
else
return (num - remainder);
}
......@@ -33,5 +33,7 @@
#define DTRACE(str, ...) dm_logger_write(mode_lib->logger, LOG_DML, str, ##__VA_ARGS__);
double dml_round(double a);
unsigned int dml_round_to_multiple(
unsigned int num, unsigned int multiple, bool up);
#endif /* __DC_COMMON_DEFS_H__ */
......@@ -58,23 +58,4 @@ static inline double dml_log(double x, double base)
return (double) dcn_bw_log(x, base);
}
static inline unsigned int dml_round_to_multiple(unsigned int num,
unsigned int multiple,
bool up)
{
unsigned int remainder;
if (multiple == 0)
return num;
remainder = num % multiple;
if (remainder == 0)
return num;
if (up)
return (num + multiple - remainder);
else
return (num - remainder);
}
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册