; Hacker's Delight, page 15, rules s - v 1 var 8 x 2 var 8 y 3 one 8 4 xnor 8 1 2 5 and 8 1 2 6 or 8 1 2 7 sub 8 5 6 8 sub 8 7 3 9 ne 1 4 8 10 add 8 5 -6 11 ne 1 4 10 12 and 8 1 -2 13 add 8 12 2 14 ne 1 6 13 15 or 8 -1 2 16 sub 8 15 -1 17 ne 1 5 16 18 or 1 9 11 19 or 1 14 17 20 or 1 18 19 21 root 1 20