Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (6h)  netbsd-10 (17d)  netbsd-9 (17d)  netbsd-8 (22d) 

2024-06-03 09:38:45 UTC Now

2011-09-01 05:07:13 UTC MAIN commitmail json YAML

add bit arithmetic operations to eawk (implementation based on the gawk
man page). this provides:

and(x, y) (in C, x & y)
or(x, y) (in C, x | y)
xor(x, y) (in C, x ^ y)
lshift(x, n) (in C, x << n)
rshift(x, n) (in C, x >> n)
compl(x) (in C, ~x)

operations, with exactly the same calling conventions as gawk.

(agc)