sign_extend64(9)
π 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 literally0<=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
- 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