drm_sm2fixp(9)
drm_sm2fixp π
okay so welcome to the drm_sm2fixp(9) page from the Kernel API Manual β this one is literally about converting signed-magnitude to fixed point, and bestie itβs short but iconic. π«Ά
πΈ NAME πΈ
drm_sm2fixp β convert signed-magnitude to fixed point.
β¨ SYNOPSIS β¨
the whole call looks like this, exactly:
s64 drm_sm2fixp (__u64 a );
π ARGUMENTS π
aβ a1.31.32signed-magnitude fixed point. yes maβam, thatβs the one and only argument.
π¦ DESCRIPTION π¦
Convert a 1.31.32 signed-magnitude fixed point to 32.32 2s-complement fixed point. thatβs the whole transformation, no cap.
and then it returns an s64 2s-complement fixed point. slay. π
π SEE ALSO π
- Kernel file
./include/drm/drm_fixed.hβ go look at it iykyk. π
mwah π source/version check: this pageβs source/version is ./include/drm, dated October 2026, and itβs still the drm_sm2fixp(9) manual β periodt. π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms