BITOPS(3)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’… BITOPS(3) β€” the bitops girlies' edition

okay so bestie, this one is a page from the Library Functions Manual β€” yes, the actual manual, and yes, we're gonna read it together. it's about bitops, and honestly? it ate. πŸŽ€


✨ NAME ✨

bitops β€” functions related to bits and integers 🧚

like, the whole header is just vibing around bits and integers. that's the assignment. that's the lore.


🌸 SYNOPSIS 🌸

#include <sys/bitops.h>

that's it. that's the whole synopsis. one include and you're in. 🫢


πŸ’– DESCRIPTION πŸ’–

okay so the <sys/bitops.h> header provides macros and static inline functions related to bits and integers. highkey iconic of it.

among these are, and I'm literally quoting the roster because every single one matters:

  • bitmap(3) β€” bitmap manipulation macros πŸŽ€
  • fast_divide32(3) β€” a function for fast 32-bit division ⚑
  • ffs32(3) β€” functions to find the first and last set bit in integers of type uint32_t and uint64_t πŸ”
  • ilog2(3) β€” a macro for binary logarithm πŸ“

that's the whole squad. go click their pages, iykyk. πŸ‘‘


πŸ¦‹ SEE ALSO πŸ¦‹

the friend group. the entourage. the supporting cast. go say hi. πŸ’œ


🌈 HISTORY 🌈

the <sys/bitops.h> header first appeared in NetBSD 4.0. so it's got history, it's got range, it's giving legacy main character energy. ⭐


and that's the whole page, bestie β€” no cap, every option-free detail preserved exactly as the manual intended. πŸ“

source/version: Debian. dated: December 4, 2012. so if you're reading this in 2012, hi, you're literally early to the bitops renaissance. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from