SET(9)

πŸ“¦ version 11.0, in nixpkgs unstable

✨ SET(9) β€” primitive bit macros ✨

from the Kernel Developer's Manual, bestie 🫢


🌸 NAME 🌸

SET β€” primitive bit macros πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

#include <sys/types.h>

void
SET(val, x);

int
ISSET(val, x);

void
CLR(val, x);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so these macros define three standard bit operations, fr fr:

  1. SET() sets the set bits from x in val β€” iconic behavior honestly ✨
  2. CLR() clears the set bits from x in val β€” bye bye bits πŸ’…
  3. ISSET() returns true if any of the set bits from x are set in val β€” the vibe check πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

πŸ’€ BUGS πŸ’€

The rationale is to provide clarity in the source code, but arguably these operations are clear enough without the use of the macros. Like… no cap? πŸ™ˆ


kisses from Debian πŸ’– β€” December 13, 2015 β€” SET(9) out πŸŽ€

πŸ“¦ where this page comes from