From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: help-gnu-emacs@gnu.org
Subject: Re: About "set bits"
Date: Fri, 12 Apr 2013 06:39:17 +0200 [thread overview]
Message-ID: <87a9p44b2i.fsf@zigzag.favinet> (raw)
In-Reply-To: <barmar-B99787.11195411042013@news.eternal-september.org> (Barry Margolin's message of "Thu, 11 Apr 2013 11:19:54 -0400")
[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]
() Barry Margolin <barmar@alum.mit.edu>
() Thu, 11 Apr 2013 11:19:54 -0400
True, these phrases can be ambiguous. But often the context and
examples help quite a bit in figuring out the intent. In this case,
there were a couple of examples; "bits" tells you to think in binary,
and if you examined the binary values of the examples it should
quickly become apparent what was meant.
Yes, i think if OP were to try more stuff in *scratch*, such questions
could be avoided. In this case, i wrote examples that (to me) seem easy
to inspect and mentally verify, so that *scratch* is not even necessary.
(Although probably they could use some additional bit-field diagrams:
1
5 8 7 0
┌────────┬────────┐
│00101000│00011100│ => (2 3 4 11 13)
└────────┴────────┘
28 1C
and
1
5 8 7 0
┌────────┬────────┐
│00011100│00101000│ => (3 5 10 11 12)
└────────┴────────┘
1C 28
Let's hope people will step forward and improve the docs over time.)
--
Thien-Thi Nguyen
GPG key: 4C807502
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2013-04-12 4:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 13:46 About "set bits" Xue Fuqiao
2013-04-10 14:15 ` Thien-Thi Nguyen
2013-04-10 15:20 ` Eli Zaretskii
[not found] ` <mailman.23883.1365607222.855.help-gnu-emacs@gnu.org>
2013-04-10 15:37 ` Barry Margolin
2013-04-10 22:33 ` Xue Fuqiao
2013-04-10 22:39 ` Xue Fuqiao
2013-04-11 8:46 ` Thien-Thi Nguyen
[not found] ` <mailman.23943.1365669842.855.help-gnu-emacs@gnu.org>
2013-04-11 15:19 ` Barry Margolin
2013-04-12 4:39 ` Thien-Thi Nguyen [this message]
2013-04-12 14:20 ` Xue Fuqiao
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a9p44b2i.fsf@zigzag.favinet \
--to=ttn@gnuvola.org \
--cc=help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.