File: bitops.fqtest

package info (click to toggle)
fq 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 106,624 kB
  • sloc: xml: 2,835; makefile: 250; sh: 241; exp: 57; ansic: 21
file content (51 lines) | stat: -rw-r--r-- 1,452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$ fq -i
null> 0, -1, 1208925819614629174706175, -1208925819614629174706176 | bnot
-1
0
-1208925819614629174706176
1208925819614629174706175
null> null | bnot
error: cannot bnot: null
null> bnot(1)
error: expr: function not defined: bnot/1
null> [0,0], [8,1], [0xffff_ffff_ffff_ffff,1] | bsl(.[0]; .[1])
0
16
36893488147419103230
null> bsl(1)
error: expr: function not defined: bsl/1
null> bsl(null; 1)
error: cannot bsl: null and number (1)
null> [0,0], [8,1], [0x1_ffff_ffff_ffff_fffe,1] | bsr(.[0]; .[1])
0
4
18446744073709551615
null> bsr(1)
error: expr: function not defined: bsr/1
null> bsr(null; 1)
error: cannot bsr: null and number (1)
null> [0,0], [0xffff_ffff_ffff_ffff_ffff,0x1234], [0x1234,0xffff_ffff_ffff_ffff_ffff,0x1234] | band(.[0]; .[1])
0
4660
4660
null> band(1)
error: expr: function not defined: band/1
null> band(null; 1)
error: cannot band: null and number (1)
null> [0,0], [0xffff_ffff_ffff_ffff_0000,0x1234], [0x1234,0xffff_ffff_ffff_ffff_0000,0x1234] | bor(.[0]; .[1])
0
1208925819614629174645300
1208925819614629174645300
null> bor(1)
error: expr: function not defined: bor/1
null> bor(null; 1)
error: cannot bor: null and number (1)
null> [0,0], [0xffff_ffff_ffff_ffff_ffff,0x1234], [0x1234,0xffff_ffff_ffff_ffff_ffff,0x1234] | bxor(.[0]; .[1])
0
1208925819614629174701515
1208925819614629174701515
null> bxor(1)
error: expr: function not defined: bxor/1
null> bxor(null; 1)
error: cannot bxor: null and number (1)
null> ^D