syl's projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Install a moduli(5) manual page.
[dragonfly.git]
/
contrib
/
bsdinstaller-1.1.6
/
src
/
backend
/
lua
/
scripts
/
test
/
bitwise.lua
1
-- $Id: bitwise.lua,v 1.2 2005/02/22 02:54:32 cpressey Exp $
2
3
require "bitwise"
4
5
d = function(a, b)
6
print(a, b,
7
"a & b = " .. Bitwise.bw_and(a, b),
8
"a | b = " .. Bitwise.bw_or(a, b)
9
)
10
end
11
12
d(255, 64)
13
d(256, 63)
14
d(256, 256)
15
d(64, 255)
16
d(10, 12)