From: simonmar Date: Wed, 26 Jul 2000 13:27:54 +0000 (+0000) Subject: [project @ 2000-07-26 13:27:54 by simonmar] X-Git-Tag: Approximately_9120_patches~3943 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=1773a3e1dd9f724eee5b9678d14f50329707dbcb;p=ghc-hetmet.git [project @ 2000-07-26 13:27:54 by simonmar] Add a constant definition for WORD_SIZE, the size of an StgWord in bytes. --- diff --git a/ghc/includes/Constants.h b/ghc/includes/Constants.h index dc6d3bd..d0640f7 100644 --- a/ghc/includes/Constants.h +++ b/ghc/includes/Constants.h @@ -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 * @@ -158,6 +158,10 @@ #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