ack/lang/cem/ctest/ctdivers/ops.cem.g

122 lines
2 KiB
Plaintext
Raw Normal View History

1985-02-06 21:25:27 +00:00
a 0, b 0, c 0, d 0
(a=0) 0, (c=0) 0
a 0, b -32, c 0, d -32
Unsigned shifts by constants
u = 150715
u>>0 150715
1987-02-24 10:15:46 +00:00
u>>1 64346
u>>2 32163
u>>3 15071
u>>4 6434
u>>5 3216
u>>6 1507
u>>7 643
u>>8 321
u>>9 150
u>>10 64
u>>11 32
u>>12 15
u>>13 6
u>>14 3
u>>15 1
u>>16 0
1985-02-06 21:25:27 +00:00
u<<0 150715
1987-02-24 10:15:46 +00:00
u<<1 321632
u<<2 643464
u<<3 1507150
u<<4 3216320
u<<5 6434640
u<<6 15071500
u<<7 32163200
u<<8 64346400
u<<9 150715000
u<<10 321632000
u<<11 643464000
u<<12 1507150000
u<<13 3216320000
u<<14 6434640000
u<<15 15071500000
u<<16 32163200000
1985-02-06 21:25:27 +00:00
Long shifts by constants
1987-02-24 10:15:46 +00:00
ll = 1414446
ll>>0 1414446
ll>>1 606223
ll>>2 303111
ll>>3 141444
ll>>4 60622
ll>>5 30311
ll>>6 14144
ll>>7 6062
ll>>8 3031
ll>>9 1414
ll>>10 606
ll>>11 303
ll>>12 141
ll>>13 60
ll>>14 30
ll>>15 14
ll>>16 6
ll>>17 3
ll>>18 1
ll>>19 0
ll>>20 0
ll>>21 0
ll>>22 0
ll>>23 0
ll>>24 0
ll>>25 0
ll>>26 0
ll>>27 0
ll>>28 0
ll>>29 0
ll>>30 0
ll>>31 0
ll<<0 1
ll<<1 2
ll<<2 4
ll<<3 10
ll<<4 20
ll<<5 40
ll<<6 100
ll<<7 200
ll<<8 400
ll<<9 1000
ll<<10 2000
ll<<11 4000
ll<<12 10000
ll<<13 20000
ll<<14 40000
ll<<15 100000
ll<<16 200000
ll<<17 400000
ll<<18 1000000
ll<<19 2000000
ll<<20 4000000
ll<<21 10000000
ll<<22 20000000
ll<<23 40000000
ll<<24 100000000
ll<<25 200000000
ll<<26 400000000
ll<<27 1000000000
ll<<28 2000000000
ll<<29 4000000000
1985-02-06 21:25:27 +00:00
ll<<30 10000000000
1987-02-24 10:15:46 +00:00
0 77770
1 77771
2 77772
3 77773
4 77774
5 77775
6 77776
7 77777
1985-02-06 21:25:27 +00:00
8 100000
9 100001
10 100002
11 100003
12 100004
13 100005
14 100006
15 100007
16 100010