From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: doco on bitwise logicals Date: Tue, 06 May 2003 09:31:29 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <873cjtt1gu.fsf@zip.com.au> References: <87vfwrjzqr.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052177554 27806 80.91.224.249 (5 May 2003 23:32:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 5 May 2003 23:32:34 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue May 06 01:32:32 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19CpRX-0007Dx-00 for ; Tue, 06 May 2003 01:32:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CpRl-0005Wt-01 for guile-devel@m.gmane.org; Mon, 05 May 2003 19:32:37 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19CpRH-0005OL-00 for guile-devel@gnu.org; Mon, 05 May 2003 19:32:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19CpQt-0004rW-00 for guile-devel@gnu.org; Mon, 05 May 2003 19:31:44 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19CpQr-0004kw-00 for guile-devel@gnu.org; Mon, 05 May 2003 19:31:42 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h45NVZJS010138 for ; Tue, 6 May 2003 09:31:36 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h45NVZQg002112 for ; Tue, 6 May 2003 09:31:35 +1000 (EST) Original-Received: from localhost (ppp27.dyn228.pacific.net.au [203.143.228.27]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h45NVYYZ012504 for ; Tue, 6 May 2003 09:31:35 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19CpQg-0001Hf-00; Tue, 06 May 2003 09:31:30 +1000 Original-To: guile-devel@gnu.org In-Reply-To: <87vfwrjzqr.fsf@zip.com.au> (Kevin Ryde's message of "Sun, 04 May 2003 10:56:44 +1000") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2270 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2270 I wrote: > > * scheme-data.texi (Bitwise Operations): ... Also sneaking in here (in the patch but not stated) is a fix for lognot to say ones-complement, where it says twos-complement now. This would be a fix for the 1.6 branch as well as the mainline I think. - Scheme Procedure: lognot n - C Function: scm_lognot (n) Return the integer which is the ones-complement of the integer argument, ie. each 0 bit is changed to 1 and each 1 bit to 0. (number->string (lognot #b10000000) 2) => "-10000001" (number->string (lognot #b0) 2) => "-1" _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel