<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Bitmap</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_Bitmap.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" >ghc-6.12.3: The GHC API</TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >Bitmap</FONT ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Synopsis</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A HREF="#t%3ABitmap" >Bitmap</A > = [<A HREF="SMRep.html#t%3AStgWord" >StgWord</A >]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AmkBitmap" >mkBitmap</A > :: [<A HREF="../base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A >] -> <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AintsToBitmap" >intsToBitmap</A > :: <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> [<A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A >] -> <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AintsToReverseBitmap" >intsToReverseBitmap</A > :: <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> [<A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A >] -> <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AmAX_SMALL_BITMAP_SIZE" >mAX_SMALL_BITMAP_SIZE</A > :: <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AseqBitmap" >seqBitmap</A > :: <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A > -> a -> a</TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Documentation</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><SPAN CLASS="keyword" >type</SPAN > <A NAME="t:Bitmap" ><A NAME="t%3ABitmap" ></A ></A ><B >Bitmap</B > = [<A HREF="SMRep.html#t%3AStgWord" >StgWord</A >]</TD ></TR ><TR ><TD CLASS="doc" >A bitmap represented by a sequence of <TT ><A HREF="SMRep.html#t%3AStgWord" >StgWord</A ></TT >s on the <EM >target</EM > architecture. These are used for bitmaps in info tables and other generated code which need to be emitted as sequences of StgWords. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:mkBitmap" ><A NAME="v%3AmkBitmap" ></A ></A ><B >mkBitmap</B > :: [<A HREF="../base-4.2.0.2/Data-Bool.html#t%3ABool" >Bool</A >] -> <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A ></TD ></TR ><TR ><TD CLASS="doc" >Make a bitmap from a sequence of bits </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:intsToBitmap" ><A NAME="v%3AintsToBitmap" ></A ></A ><B >intsToBitmap</B > :: <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> [<A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A >] -> <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A ></TD ></TR ><TR ><TD CLASS="doc" ><P >Make a bitmap where the slots specified are the <EM >ones</EM > in the bitmap. eg. <TT >[0,1,3], size 4 ==> 0xb</TT >. </P ><P >The list of <TT >Int</TT >s <EM >must</EM > be already sorted. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:intsToReverseBitmap" ><A NAME="v%3AintsToReverseBitmap" ></A ></A ><B >intsToReverseBitmap</B > :: <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A > -> [<A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A >] -> <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A ></TD ></TR ><TR ><TD CLASS="doc" ><P >Make a bitmap where the slots specified are the <EM >zeros</EM > in the bitmap. eg. <TT >[0,1,3], size 4 ==> 0x4</TT > (we leave any bits outside the size as zero, just to make the bitmap easier to read). </P ><P >The list of <TT >Int</TT >s <EM >must</EM > be already sorted. </P ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:mAX_SMALL_BITMAP_SIZE" ><A NAME="v%3AmAX_SMALL_BITMAP_SIZE" ></A ></A ><B >mAX_SMALL_BITMAP_SIZE</B > :: <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="doc" >Magic number, must agree with <TT >BITMAP_BITS_SHIFT</TT > in InfoTables.h. Some kinds of bitmap pack a size/bitmap into a single word if possible, or fall back to an external pointer when the bitmap is too large. This value represents the largest size of bitmap that can be packed into a single word. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="decl" ><A NAME="v:seqBitmap" ><A NAME="v%3AseqBitmap" ></A ></A ><B >seqBitmap</B > :: <A HREF="Bitmap.html#t%3ABitmap" >Bitmap</A > -> a -> a</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.6.1</TD ></TR ></TABLE ></BODY ></HTML >