2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/amd/display/dc/dml/calcs
Alex Hung b62ec97d55 drm/amd/display: Covert integers to double before divisions
Integer divisions result in loss of fractional and accuracy is lost
when assigned or compared with double. It is necessary to perform
double/integer instead or explicitly cast them to double.

This fixes 54 UNINTENDED_INTEGER_DIVISION issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2024-06-19 12:44:55 -04:00
..
dcn_calc_auto.c drm/amd/display: Optimizations for DML math 2022-09-13 14:32:59 -04:00
dcn_calc_auto.h
dcn_calc_math.c drm/amd/display: Optimizations for DML math 2022-09-13 14:32:59 -04:00
dcn_calcs.c drm/amd/display: Covert integers to double before divisions 2024-06-19 12:44:55 -04:00