Difference between revisions of "Pipe"
From WikiManual
(New page: Picks two stack numbers and returns the OR comparison of their bytes. 0 0 | = 0 -1 0 | = -1 0 1 | = 1 1 1 | = 1 -1 1 | = -1 0 -1 | = -1 -1 -1 | = -1 When one of the numbers i...) |
m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | Picks two stack numbers and returns the OR comparison of their | + | Picks two stack numbers and returns the OR comparison of their bits. |
| − | + | 0 0 | = 0 | |
| − | -1 0 | = -1 | + | -1 0 | = -1 |
| − | + | 0 1 | = 1 | |
| − | + | 1 1 | = 1 | |
| − | -1 1 | = -1 | + | -1 1 | = -1 |
| − | + | 0 -1 | = -1 | |
| − | -1 -1 | = -1 | + | -1 -1 | = -1 |
When one of the numbers is a power of 2, it adds both numbers. | When one of the numbers is a power of 2, it adds both numbers. | ||
Latest revision as of 11:31, 11 August 2007
Picks two stack numbers and returns the OR comparison of their bits.
0 0 | = 0 -1 0 | = -1 0 1 | = 1 1 1 | = 1 -1 1 | = -1 0 -1 | = -1 -1 -1 | = -1
When one of the numbers is a power of 2, it adds both numbers.