home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.programming
- Path: sparky!uunet!microsoft!hexnut!gideony
- From: gideony@microsoft.com (Gideon Yuval)
- Subject: Re: finding 1st one in integer
- Message-ID: <1992Jul22.065111.16800@microsoft.com>
- Date: 22 Jul 92 06:51:11 GMT
- Organization: Microsoft Corporation
- References: <Brqu3F.1J4@undergrad.math.waterloo.edu> <1992Jul21.173805.12045@bcrka451.bnr.ca>
- Lines: 6
-
- A 37-entry table suffices.
-
- table[ ( (X xor (X-1)) modulo 37 ] will get you the 1st 1-bit
- from the bottom.
- --
- Gideon Yuval, gideony@microsoft.com, 206-882-8080 (fax:-883-8101;TWX:160520)
-