sign_extend64(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the Kernel API Manual entry for sign_extend64(9), bestie! This is the little kernel helper that will sign extend a 64-bit value using specified bit as sign-bit. It’s giving β€œtiny function, big bit energy” fr fr. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

__s64 sign_extend64 (__u64 value , int index );

πŸ’… ARGUMENTS πŸ’…

  • value β€” value to sign extend. This is the value you’re handing over, no cap. πŸ’–
  • index β€” 0 based bit index (0<=index<64) to sign bit. So yes, it’s zero-based, and the range is literally 0<=index<64 β€” iykyk. 🌸

πŸ‘€ SEE ALSO πŸ‘€

  • Kernel file ./tools/include/linux/bitops.h β€” bestie, go peek at the bitops file if you want the whole vibe. πŸ¦‹
  • rol32(9) β€” another bit-twiddling icon, periodt. πŸ‘‘

xoxo, that’s the whole page, bestie! Source/version: ./tools/include/linux, date: October 2026, so now you know the lore. πŸ’…βœ¨

πŸ“¦ where this page comes from