From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: About "set bits" Date: Wed, 10 Apr 2013 21:46:27 +0800 Message-ID: <20130410214627.6ca217f53415c0c6d1837edd@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1365601590 24413 80.91.229.3 (10 Apr 2013 13:46:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Apr 2013 13:46:30 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 10 15:46:34 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPvM9-0005MQ-3G for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 15:46:33 +0200 Original-Received: from localhost ([::1]:35709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPvM8-0002VB-M4 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Apr 2013 09:46:32 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPvLx-0002Uw-Es for help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 09:46:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPvLw-0004eL-91 for help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 09:46:21 -0400 Original-Received: from mail-da0-x232.google.com ([2607:f8b0:400e:c00::232]:64038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPvLw-0004e0-2k for help-gnu-emacs@gnu.org; Wed, 10 Apr 2013 09:46:20 -0400 Original-Received: by mail-da0-f50.google.com with SMTP id t1so222271dae.37 for ; Wed, 10 Apr 2013 06:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=Akq87Sx33dKI2+JFLlJRJB9TkpfrKClfqzVDADbOZgY=; b=kk/6uLZmwU6IpAodupc/nDbKz2ORg2F/Vzamy2EiccNNXJYC7j+4nhANkb73k6kAQN kJ0WF9NlHfMjdzxURBlpI3gAhtq9uyJokOVO0revK0M4+p6JknGWpdhbXWycchWbmVaC DxzbX693okhyCRX069gCctJCylaOaSwowjn1YAYWiyt6Xtc56/hO5qHS6nkaVeS2nfh3 kII+WOjbnyaEwVyCyPPqvXHoyPtw65wocVMxk4hVoAWZWWrFH8Y0JCkPEJeUQNVfkZE3 jkm2/wzAbrrI8A9NgKUdU6Iz0H7sjN3Yi1KAXzRZFQS8HRHSObKgK2K1bXTYckMDQBko RKRQ== X-Received: by 10.66.217.193 with SMTP id pa1mr3661267pac.140.1365601578777; Wed, 10 Apr 2013 06:46:18 -0700 (PDT) Original-Received: from debian.emacs ([123.114.130.54]) by mx.google.com with ESMTPS id pb14sm6474pbb.27.2013.04.10.06.46.15 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Apr 2013 06:46:18 -0700 (PDT) X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.10; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::232 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:90056 Archived-At: In (info "(elisp) Bindat Spec"): `bits LEN' List of set bits in LEN bytes. The bytes are taken in big endian order and the bits are numbered starting with `8 * LEN - 1' and ending with zero. For example: `bits 2' unpacks `#x28' `#x1c' to `(2 3 4 11 13)' and `#x1c' `#x28' to `(3 5 10 11 12)'. I don't know what "set bits" means here. I have searched the archives, and found two related threads: http://lists.gnu.org/archive/html/help-gnu-emacs/2005-06/msg00087.html http://lists.gnu.org/archive/html/help-gnu-emacs/2013-01/msg00103.html But they didn't help. I have also searched the web and seen the commentary header of bindat.el, but nothing helped to me. Can I get a pointer to information on this concept (or on byte packing)? -- Xue Fuqiao English is not my native language; please excuse typing errors.