Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!ficc!peter From: peter@ficc.ferranti.com (peter da silva) Newsgroups: comp.arch Subject: Re: new instructions Message-ID: Date: 24 May 91 21:15:52 GMT References: <24216@lanl.gov> <1991May23.192557.7558@kithrup.COM> <1991May24.175323.9730@netcom.COM> Organization: Ferranti International Controls Corporation Lines: 9 In article <1991May24.175323.9730@netcom.COM>, craig@netcom.COM (Craig Hansen) writes: > The C code below uses the well-known doubling technique > to count ones in a bit string of arbitrary length. Yow. How about combining it with Duff's Device to *really* make it confusing, and allow the bit string to start on an arbitrary byte boundary. -- Peter da Silva; Ferranti International Controls Corporation; +1 713 274 5180; Sugar Land, TX 77487-5012; `-_-' "Have you hugged your wolf, today?"