Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10776 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50633 invoked by uid 1010); 25 Jun 2004 17:25:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50565 invoked from network); 25 Jun 2004 17:25:06 -0000 Received: from unknown (HELO mproxy.gmail.com) (216.239.56.251) by pb1.pair.com with SMTP; 25 Jun 2004 17:25:06 -0000 Received: by mproxy.gmail.com with SMTP id r62so161114cwc for ; Fri, 25 Jun 2004 10:25:06 -0700 (PDT) Received: by 10.38.8.34 with SMTP id 34mr113826rnh; Fri, 25 Jun 2004 10:24:59 -0700 (PDT) Message-ID: <3ad3168b040625102478509d5f@mail.gmail.com> Date: Fri, 25 Jun 2004 18:24:59 +0100 To: internals@lists.php.net Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Binary Shift: Signed or Unsigned? From: alex.stapleton@gmail.com (Alex Stapleton) Are << and >> signed or not? E.g. is 1100 >> 1 = 1110 or 0110? 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 writing my own function to shift the bits and then convert back to a number? Is what i am after planned if not availible already?