diff options
author | Dave Airlie <airlied@redhat.com> | 2017-09-29 17:13:25 +1000 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-29 13:03:35 -0400 |
commit | dfd1e5ce673b8b2557d622dc99735e2d7ad5ba5b (patch) | |
tree | 5f8a372e95965654f0431344623895945faecc91 /drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c | |
parent | 1fcd8c53b0c45c405433b5d78a5e2b2d858bd3af (diff) |
amdgpu/dc: allow inlining constant int to fixed a lot better.
This uses two things that might be Linux specific,
__builtin_constant_p (might be gcc)
and
BUILD_BUG_ON. (maybe other dm's can have something similiar).
This saves 4k in the bw calcs code.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/basics/fixpt31_32.c')
0 files changed, 0 insertions, 0 deletions