diff options
| author | Harry Wentland <[email protected]> | 2017-11-29 15:16:51 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-12-14 15:54:51 +0000 |
| commit | 3f4e3a282e1235a9ab46d063b0902c00b6afc6a9 (patch) | |
| tree | 97ca52c486783ffb1fc1373f4c74f28e3e9f013e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | drm/amd/display: dal 3.1.24 (diff) | |
| download | kernel-3f4e3a282e1235a9ab46d063b0902c00b6afc6a9.tar.gz kernel-3f4e3a282e1235a9ab46d063b0902c00b6afc6a9.zip | |
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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
