drm_sm2fixp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 β€” a 1.31.32 signed-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