[project @ 2000-07-26 13:27:54 by simonmar]
authorsimonmar <unknown>
Wed, 26 Jul 2000 13:27:54 +0000 (13:27 +0000)
committersimonmar <unknown>
Wed, 26 Jul 2000 13:27:54 +0000 (13:27 +0000)
Add a constant definition for WORD_SIZE, the size of an StgWord in bytes.

ghc/includes/Constants.h

index dc6d3bd..d0640f7 100644 (file)
@@ -1,5 +1,5 @@
 /* ----------------------------------------------------------------------------
- * $Id: Constants.h,v 1.11 2000/02/28 12:02:32 sewardj Exp $
+ * $Id: Constants.h,v 1.12 2000/07/26 13:27:54 simonmar Exp $
  *
  * (c) The GHC Team, 1998-1999
  *
 #define INT64_SIZE     2
 #endif
 
+
+/*---- The size of StgWord, in bytes. */
+#define WORD_SIZE       SIZEOF_VOID_P
+
 /*---- Maximum number of constructors in a data type for direct-returns.  */
 
 #define MAX_VECTORED_RTN 8