From: Kevin Ryde <user42@zip.com.au>
Subject: Re: doco on bitwise logicals
Date: Tue, 06 May 2003 09:31:29 +1000 [thread overview]
Message-ID: <873cjtt1gu.fsf@zip.com.au> (raw)
In-Reply-To: <87vfwrjzqr.fsf@zip.com.au> (Kevin Ryde's message of "Sun, 04 May 2003 10:56:44 +1000")
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
next prev parent reply other threads:[~2003-05-05 23:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-04 0:56 doco on bitwise logicals Kevin Ryde
2003-05-04 5:35 ` Rob Browning
2003-05-05 23:35 ` Kevin Ryde
2003-05-10 1:10 ` Kevin Ryde
2003-05-10 3:58 ` Kevin Ryde
2003-05-05 23:31 ` Kevin Ryde [this message]
2003-05-06 1:23 ` Rob Browning
2003-05-06 2:02 ` Kevin Ryde
2003-05-08 1:07 ` Kevin Ryde
2003-05-09 23:12 ` Rob Browning
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873cjtt1gu.fsf@zip.com.au \
--to=user42@zip.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).