Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10777 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59954 invoked by uid 1010); 25 Jun 2004 17:54:24 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59929 invoked from network); 25 Jun 2004 17:54:24 -0000 Received: from unknown (HELO xaxa.search.ch) (195.141.85.117) by pb1.pair.com with SMTP; 25 Jun 2004 17:54:24 -0000 Received: from localhost (localhost [127.0.0.1]) by xaxa.search.ch (Postfix) with ESMTP id 1B7B06D86A; Fri, 25 Jun 2004 19:54:24 +0200 (CEST) Received: by xaxa.search.ch (Postfix, from userid 65534) id DB5396D8B2; Fri, 25 Jun 2004 19:54:22 +0200 (CEST) Received: from [192.168.1.72] (ultrafilter-i [192.168.85.2]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by xaxa.search.ch (Postfix) with ESMTP id 422DD6D86A; Fri, 25 Jun 2004 19:54:22 +0200 (CEST) Message-ID: <40DC66CD.4010202@cschneid.com> Date: Fri, 25 Jun 2004 19:54:21 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-us, en, de-ch MIME-Version: 1.0 To: Alex Stapleton Cc: internals@lists.php.net References: <3ad3168b040625102478509d5f@mail.gmail.com> In-Reply-To: <3ad3168b040625102478509d5f@mail.gmail.com> X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on xaxa.search.ch X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.63 X-Virus-Scanned: by AMaViS 0.3.12pre8 Subject: Re: Binary Shift: Signed or Unsigned? From: cschneid@cschneid.com (Christian Schneider) Alex Stapleton wrote: > I am using PHP5, if I want unsigned binary shift, do i have any > options other than converting to a string using base_convert and You could use BC: bcdiv($a, 2); to do $a >> 1; - Chris