commit | 3f4e3a282e1235a9ab46d063b0902c00b6afc6a9 | [log] [tgz] |
---|---|---|
author | Harry Wentland <harry.wentland@amd.com> | Wed Nov 29 10:16:51 2017 -0500 |
committer | Alex Deucher <alexander.deucher@amd.com> | Thu Dec 14 10:54:51 2017 -0500 |
tree | 97ca52c486783ffb1fc1373f4c74f28e3e9f013e | |
parent | fdc72e7df9a42fe206d024f980def5a099aeea1d [diff] |
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>