]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Use macro for isnan check
authorHarry Wentland <harry.wentland@amd.com>
Wed, 29 Nov 2017 15:16:51 +0000 (10:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Dec 2017 15:54:51 +0000 (10:54 -0500)
commit1475ddd9813fb099798ea77224cf0b2c6ef657fd
tree97ca52c486783ffb1fc1373f4c74f28e3e9f013e
parentac767ae57432bb1d45ad2ccb50b166a0d2d34e09
drm/amd/display: Use macro for isnan check

In code provided by HW teams we do a NaN check on floats
by comparing the number against itself. This confuses most
people including myself. Macro it out to make it self-explanatory.

Don't do a NaN check for int.

v2: parantheses around 'number' expression

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calc_math.c