Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 84200 invoked from network); 11 Mar 2009 14:30:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2009 14:30:33 -0000 Received: (qmail 76009 invoked by uid 500); 11 Mar 2009 14:30:25 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 75972 invoked by uid 500); 11 Mar 2009 14:30:25 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 75958 invoked by uid 99); 11 Mar 2009 14:30:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 07:30:25 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of yseeley@gmail.com designates 209.85.221.108 as permitted sender) Received: from [209.85.221.108] (HELO mail-qy0-f108.google.com) (209.85.221.108) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Mar 2009 14:30:17 +0000 Received: by qyk6 with SMTP id 6so44432qyk.29 for ; Wed, 11 Mar 2009 07:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=5oDEsMRouLjBXr4lvUXUBzbryrxaZuq35SJzvp4ivTI=; b=JI2cHQfvsOPl/5dZxqAoYXL3bEuisHv54r8pWMiatkyxBlUM4qZQ8GdoYtMckcuu25 aAh3zngmmLUSdPEsZiyWsUZQafXakDH0IW3QcBkylrInyP+e8Fa0DPvuW4zJFxr5I33I b/SyMhWAB4e8lkHGGy4h7qI7wb3/UJBqz09GU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=oyuHbh5Lm52KrIPaLO3P4JYadK3qBZmvAgaTLVp+FZXfxBoMG8ZMaERyqLN9BCadkV 3onKdOcYzE8ax7kgRg24o8evIzYyy23+YBEEU7dv4oxHJCR+/YidnHp6SztyBz6yKfUY 6o6RN5xVKOCNt1sepN2z36n3ibkek252sYLI4= MIME-Version: 1.0 Sender: yseeley@gmail.com Reply-To: yonik@lucidimagination.com Received: by 10.229.100.68 with SMTP id x4mr5523841qcn.1.1236781797012; Wed, 11 Mar 2009 07:29:57 -0700 (PDT) In-Reply-To: <68959F25CDEBCB4F917D5A253291D73E0D8BAB721E@BLRKECMBX06.ad.infosys.com> References: <68959F25CDEBCB4F917D5A253291D73E0D8BAB7209@BLRKECMBX06.ad.infosys.com> <68959F25CDEBCB4F917D5A253291D73E0D8BAB721E@BLRKECMBX06.ad.infosys.com> Date: Wed, 11 Mar 2009 10:29:56 -0400 X-Google-Sender-Auth: 07ab423b60f28d40 Message-ID: Subject: Re: Integer2String Covnersation From: Yonik Seeley To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Mar 11, 2009 at 10:25 AM, Allahbaksh Mohammedali Asadullah 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