]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Remove use of division operator for long longs
authorDavid Francis <David.Francis@amd.com>
Thu, 24 May 2018 14:40:12 +0000 (10:40 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 May 2018 15:07:56 +0000 (10:07 -0500)
commitc1412855648c492fc3dbf9650495a78eb85af5b0
tree921d7433eb3c3b39f4ca56e4445eeb26f0e78e23
parent6557a541f2b17118b360dce94103f3ac2cf0f88f
drm/amd/display: Remove use of division operator for long longs

In fixed31_32.h, in dc_fixpt_shl,'/' was used for division of one long
long int by another long long int.  As there is no inbuilt long long
int division function in c, gcc inserted its own.  However, gcc does not
link the library that contains this function.  To avoid this, use
bitwise operators instead of /

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/include/fixed31_32.h