BITOPS(3)
π 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 typeuint32_tanduint64_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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2011 Jukka Ruohonen <jruohonen@iki.fi>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms