From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1642 invoked by alias); 7 May 2005 04:40:21 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 1613 invoked from network); 7 May 2005 04:40:15 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 7 May 2005 04:40:15 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j474eFj9007185 for ; Sat, 7 May 2005 00:40:15 -0400 Received: from zenia.home.redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j474e4O09218; Sat, 7 May 2005 00:40:04 -0400 To: sid@sources.redhat.com Subject: doc fix for some CGEN macros From: Jim Blandy Date: Sat, 07 May 2005 04:40:00 -0000 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-q2/txt/msg00012.txt.bz2 I've committed this. 2005-05-06 Jim Blandy * cgen-engine.h (EXTRACT_MSB0_INT, EXTRACT_MSB0_UINT) (EXTRACT_LSB0_INT, EXTRACT_LSB0_UINT): Doc fixes. Index: sid/component/cgen-cpu/cgen-engine.h =================================================================== RCS file: /cvs/cvsfiles/devo/sid/component/cgen-cpu/cgen-engine.h,v retrieving revision 1.22 diff -c -p -r1.22 cgen-engine.h *** sid/component/cgen-cpu/cgen-engine.h 21 Feb 2005 09:11:37 -0000 1.22 --- sid/component/cgen-cpu/cgen-engine.h 7 May 2005 04:35:17 -0000 *************** public: *** 579,584 **** --- 579,588 ---- // Instruction field support macros. + /* Treating the TOTAL least significant bits of VAL as a field, and + numbering its leftmost bit zero, return the LENGTH-bit subfield + whose leftmost bit is START. + The '*INT' version sign-extends; the '*UINT' version doesn't. */ #define EXTRACT_MSB0_INT(val, total, start, length) \ (((INT) (val) << ((sizeof (INT) * 8) - (total) + (start))) \ >> ((sizeof (INT) * 8) - (length))) *************** public: *** 586,591 **** --- 590,599 ---- (((UINT) (val) << ((sizeof (UINT) * 8) - (total) + (start))) \ >> ((sizeof (UINT) * 8) - (length))) + /* Treating the TOTAL least significant bits of VAL as a field, and + numbering its rightmost bit zero, return the LENGTH-bit subfield + whose leftmost bit is START. + The '*INT' version sign-extends; the '*UINT' version doesn't. */ #define EXTRACT_LSB0_INT(val, total, start, length) \ (((INT) (val) << ((sizeof (INT) * 8) - (start) - 1)) \ >> ((sizeof (INT) * 8) - (length)))