[svn:parrot] r41879 - branches/pcc_reapply/src/pmc

chromatic at svn.parrot.org chromatic at svn.parrot.org
Thu Oct 15 09:02:53 UTC 2009


Author: chromatic
Date: Thu Oct 15 09:02:52 2009
New Revision: 41879
URL: https://trac.parrot.org/parrot/changeset/41879

Log:
[PMC] Fixed comment about tag bits in CallSignature and turned a magic number
into a clearer #define to avoid further confusion.

Modified:
   branches/pcc_reapply/src/pmc/callsignature.pmc

Modified: branches/pcc_reapply/src/pmc/callsignature.pmc
==============================================================================
--- branches/pcc_reapply/src/pmc/callsignature.pmc	Thu Oct 15 09:02:43 2009	(r41878)
+++ branches/pcc_reapply/src/pmc/callsignature.pmc	Thu Oct 15 09:02:52 2009	(r41879)
@@ -30,8 +30,9 @@
     struct Pcc_cell *next;
 } Pcc_cell;
 
-/* mask off lower three bits for pointer tag */
-#define UNTAG_CELL(c) INTVAL2PTR(Pcc_cell *, (PTR2INTVAL(c)) & ~3)
+/* mask off lower two bits (1 + 2 = 3) for pointer tags */
+#define TAG_BITS 3
+#define UNTAG_CELL(c) INTVAL2PTR(Pcc_cell *, (PTR2INTVAL(c)) & ~TAG_BITS)
 
 #define CELL_INT(c)     UNTAG_CELL(c)->u.i
 #define CELL_FLOAT(c)   UNTAG_CELL(c)->u.n


More information about the parrot-commits mailing list