From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21369 invoked from network); 4 May 2008 18:15:53 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 May 2008 18:15:53 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 22248 invoked from network); 4 May 2008 18:15:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 May 2008 18:15:42 -0000 Received: (qmail 14494 invoked by alias); 4 May 2008 18:15:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12823 Received: (qmail 14475 invoked from network); 4 May 2008 18:15:32 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 May 2008 18:15:32 -0000 Received: from mtaout03-winn.ispmail.ntl.com (mtaout03-winn.ispmail.ntl.com [81.103.221.49]) by bifrost.dotsrc.org (Postfix) with ESMTP id 6C0DA80ED172 for ; Sun, 4 May 2008 20:15:28 +0200 (CEST) Received: from aamtaout04-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout03-winn.ispmail.ntl.com with ESMTP id <20080504181954.RAJ19548.mtaout03-winn.ispmail.ntl.com@aamtaout04-winn.ispmail.ntl.com> for ; Sun, 4 May 2008 19:19:54 +0100 Received: from pws-pc.ntlworld.com ([81.107.40.67]) by aamtaout04-winn.ispmail.ntl.com with ESMTP id <20080504181533.WQTC29112.aamtaout04-winn.ispmail.ntl.com@pws-pc.ntlworld.com> for ; Sun, 4 May 2008 19:15:33 +0100 Received: from pws-pc (pws-pc [127.0.0.1]) by pws-pc.ntlworld.com (8.14.2/8.14.2) with ESMTP id m44IEedW003416 for ; Sun, 4 May 2008 19:14:40 +0100 Message-Id: <200805041814.m44IEedW003416@pws-pc.ntlworld.com> From: Peter Stephenson To: zsh-users@sunsite.dk Subject: Re: Zsh hangs sometimes? In-Reply-To: Message from Bart Schaefer of "Sun, 04 May 2008 10:00:15 PDT." <080504100015.ZM3588@torch.brasslantern.com> Date: Sun, 04 May 2008 19:14:40 +0100 X-Virus-Scanned: ClamAV 0.91.2/7023/Sun May 4 19:35:05 2008 on bifrost X-Virus-Status: Clean Bart Schaefer wrote: > } set of bits 0x09e1 (or whatever), to deduce that this includes (1<<11), > } (1<<8), (1<<7), (1<<6), (1<<5) and (1<<0)? > > If it's a bitmask, you should be asking the debugger to print it in > binary rather than hex, so you can see the individual 100111100001. Hmm... the first thing I do with that is group it as 1001 1110 0001, otherwise I can't count it. So I end up with something that looks like hex anyway. But in that form it's six and two threes (which you don't say in California, either; I'm told it's probably a Tyneside peculiarity) whether I turn it into hex or count within the groups of four. > In 0x09e1 you still have to compute that "e" is ... er ... gimme a > moment ... 8+4+2. > > I think perhaps your programming of BlueTooth drivers has you thinking > more naturally in hex. You're quite right that I tend to think down at the lowest levels, but actually in firmware terms rather than driver terms. I'm used to things like enum fiddly_analogue_radio_bits { ANA_TWEAK_FOR_THE_STUFF_IN_THAT_OTHER_WOTSIT_LVL_MASK = 0x0f00 }; and bitmasks don't naturally lend themselves to individual powers of two. (See the new definitions for colour attributes in zsh.h for examples.) -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/