aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2024-12-19 21:52:53 +0000
committerLinus Torvalds <[email protected]>2024-12-23 19:18:36 +0000
commit8d4826cc8a8aca01a3b5e95438dfc0eb3bd589ab (patch)
treecbfbd34721a4a5af6bf2646bda3efbdffa429482 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentvsnprintf: mark the indirect width and precision cases unlikely (diff)
downloadkernel-8d4826cc8a8aca01a3b5e95438dfc0eb3bd589ab.tar.gz
kernel-8d4826cc8a8aca01a3b5e95438dfc0eb3bd589ab.zip
vsnprintf: collapse the number format state into one single state
We'll squirrel away the size of the number in 'struct fmt' instead. We have two fairly separate state structures: the 'decode state' is in 'struct fmt', while the 'printout format' is in 'printf_spec'. Both structures are small enough to pass around in registers even across function boundaries (ie two words), even on 32-bit machines. The goal here is to avoid the case statements on the format states, which generate either deep conditionals or jump tables, while also keeping the state size manageable. Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions