On 21 Dec 2006 21:41:25 +0000, David Denholm <[EMAIL PROTECTED]> wrote:
"John Tromp" <[EMAIL PROTECTED]> writes: > Or use (r & (-1>>1)) to obtain a nonnegative value (instead of abs(r)), I think you meant (-1 >>> 1) : (-1 >> 1) is still -1 since >> is a signed shift (preserves top bit). >>> is the unsigned shift which clears top bit.
Right you are:) -John
_______________________________________________ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/