Commit 99f27d09 authored by ken's avatar ken
Browse files

[project @ 2001-09-17 22:46:59 by ken]

The size of a large bitmap is in number of (32- or 64-bit) words,
not 32-bit words. MERGE TO STABLE
parent aafccd38
/* ----------------------------------------------------------------------------
* $Id: InfoMacros.h,v 1.16 2001/07/24 05:04:58 ken Exp $
* $Id: InfoMacros.h,v 1.17 2001/09/17 22:46:59 ken Exp $
*
* (c) The GHC Team, 1998-1999
*
......@@ -618,7 +618,8 @@ typedef vec_info_8 StgPolyInfoTable;
static const StgSRT lbl = {
#define BITMAP(lbl,size,contents) \
static const StgLargeBitmap lbl = { size, { contents } };
static const StgLargeBitmap lbl = { \
(size*4+SIZEOF_VOID_P-1)/SIZEOF_VOID_P, { contents } };
#if SIZEOF_VOID_P == 8
#define BITMAP_SWITCH64(small, large) small
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment