ror16(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« ror16(9) πŸ’«

okay so welcome to the kernel API manual bestie, we're doing ror16 today and honestly? she's iconic. tiny function, huge main character energy. this is the page for rotating a 16-bit value right πŸŽ€


✨ NAME ✨

ror16 β€” rotate a 16-bit value right. that's it. that's the whole gig. no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

__u16 ror16 (__u16 word , unsigned int shift );

look at her. so simple. so clean. she takes two things and gives you back a __u16, periodt ✨


🌸 ARGUMENTS 🌸

  • word β€” the value to rotate. this is your lil guy going in for the spin πŸ’–
  • shift β€” the bits to roll. how far right are we yeeting it, iykyk πŸ”₯

πŸ‘‘ SEE ALSO πŸ‘‘

okay so if you liked this one (and you did, obviously), the kernel file ./include/linux/bitops.h has the whole friend group 🫢. lowkey it's giving bit-twiddling royalty:

literally the entire bitops squad, go read them all, they ate πŸ’€βœ¨


ngl bestie, shift is unsigned int and word is __u16 β€” keep those types exactly how they are, the kernel does not play about types πŸ™ˆ

and that's the page!! mwah πŸ’– this one lives over in ./include/linux and it's dated October 2026 β€” so yeah, mark your calendar, she's from the future, iconic behavior honestly πŸ‘‘πŸŒˆβ­

πŸ“¦ where this page comes from