SET(9)
β¨ 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:
SET()sets the set bits fromxinvalβ iconic behavior honestly β¨CLR()clears the set bits fromxinvalβ bye bye bits πISSET()returns true if any of the set bits fromxare set invalβ 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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2010 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms