lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: Integer2String Covnersation
Date Wed, 11 Mar 2009 14:29:56 GMT
On Wed, Mar 11, 2009 at 10:25 AM, Allahbaksh Mohammedali Asadullah
<Allahbaksh_Asadullah@infosys.com> wrote:
> Hi,
> I didn't get what exactly does shifiting 24 times and shifing 12 times does. Is there
any Character at that value or is there some differenciator?
> Can some one go in bit details.
> Regards.

That's just bit twiddling to slice up the integer into smaller pieces.
for example val>>>24 moves the top 8  bits of the 32 bit int into the
lowest 8 bits.

-Yonik
http://www.lucidimagination.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message