This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Number of 1's in 64 bit number...[don't read if not interested in algos/math...]
- From: "Preeti Aira" <ms_preeti at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Thu, 25 Apr 2002 10:14:02 +0530
- Subject: Number of 1's in 64 bit number...[don't read if not interested in algos/math...]
- Bcc:
Hello every body..
Can any body give me the algo for finding number of 1's (set bits) in a 64
bit number. Algo with out any loop or recurson. Should be a reasonably
efficient and small and giving result in fixed time.
have a nice time
Pret.
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com