; Hacker's Delight, page 17, absolute value computations (abs) 1 var 32 x 2 zero 32 3 const 5 11111 4 slt 1 1 2 5 neg 32 1 6 cond 32 4 5 1 7 sra 32 1 3 8 xor 32 1 7 9 sub 32 8 7 10 eq 1 6 9 11 add 32 1 7 12 xor 32 11 7 13 eq 1 6 12 14 add 32 1 1 15 and 32 14 7 16 sub 32 1 15 17 eq 1 6 16 18 or 1 -10 -13 19 or 1 18 -17 20 root 1 19