Author: Landon Rabern
Date: 11:23:53 10/13/99
What is quick way to get the LSB of a 64 bit unsigned int? If I take n & -n, I can clear all the bits except the one that I want. Then I could either do a loop shifting right until I got 1 or do a log base 2. These both seem slow, is there a faster way? Thanks, Landon
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.