public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: sid@sources.redhat.com
Subject: doc fix for some CGEN macros
Date: Sat, 07 May 2005 04:40:00 -0000	[thread overview]
Message-ID: <vt2oebnbqji.fsf@zenia.home> (raw)


I've committed this.

2005-05-06  Jim Blandy  <jimb@redhat.com>

	* 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 ----
  \f
  // 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)))

                 reply	other threads:[~2005-05-07  4:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=vt2oebnbqji.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=sid@sources.redhat.com \
    /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).