<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Bitmap</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_Bitmap.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">ghc-7.4.2: The GHC API</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Bitmap</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">type</span> <a href="#t:Bitmap">Bitmap</a> = [<a href="SMRep.html#t:StgWord">StgWord</a>]</li><li class="src short"><a href="#v:mkBitmap">mkBitmap</a> :: [<a href="../base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a>] -> <a href="Bitmap.html#t:Bitmap">Bitmap</a></li><li class="src short"><a href="#v:intsToBitmap">intsToBitmap</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -> [<a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>] -> <a href="Bitmap.html#t:Bitmap">Bitmap</a></li><li class="src short"><a href="#v:intsToReverseBitmap">intsToReverseBitmap</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -> [<a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>] -> <a href="Bitmap.html#t:Bitmap">Bitmap</a></li><li class="src short"><a href="#v:mAX_SMALL_BITMAP_SIZE">mAX_SMALL_BITMAP_SIZE</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:seqBitmap">seqBitmap</a> :: <a href="Bitmap.html#t:Bitmap">Bitmap</a> -> a -> a</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Bitmap" class="def">Bitmap</a> = [<a href="SMRep.html#t:StgWord">StgWord</a>]</p><div class="doc"><p>A bitmap represented by a sequence of <code><a href="SMRep.html#t:StgWord">StgWord</a></code>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. </p></div></div><div class="top"><p class="src"><a name="v:mkBitmap" class="def">mkBitmap</a> :: [<a href="../base-4.5.1.0/Data-Bool.html#t:Bool">Bool</a>] -> <a href="Bitmap.html#t:Bitmap">Bitmap</a></p><div class="doc"><p>Make a bitmap from a sequence of bits </p></div></div><div class="top"><p class="src"><a name="v:intsToBitmap" class="def">intsToBitmap</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -> [<a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>] -> <a href="Bitmap.html#t:Bitmap">Bitmap</a></p><div class="doc"><p>Make a bitmap where the slots specified are the <em>ones</em> in the bitmap. eg. <code>[0,1,3], size 4 ==> 0xb</code>. </p><p>The list of <code>Int</code>s <em>must</em> be already sorted. </p></div></div><div class="top"><p class="src"><a name="v:intsToReverseBitmap" class="def">intsToReverseBitmap</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a> -> [<a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>] -> <a href="Bitmap.html#t:Bitmap">Bitmap</a></p><div class="doc"><p>Make a bitmap where the slots specified are the <em>zeros</em> in the bitmap. eg. <code>[0,1,3], size 4 ==> 0x4</code> (we leave any bits outside the size as zero, just to make the bitmap easier to read). </p><p>The list of <code>Int</code>s <em>must</em> be already sorted. </p></div></div><div class="top"><p class="src"><a name="v:mAX_SMALL_BITMAP_SIZE" class="def">mAX_SMALL_BITMAP_SIZE</a> :: <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a></p><div class="doc"><p>Magic number, must agree with <code>BITMAP_BITS_SHIFT</code> 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. </p></div></div><div class="top"><p class="src"><a name="v:seqBitmap" class="def">seqBitmap</a> :: <a href="Bitmap.html#t:Bitmap">Bitmap</a> -> a -> a</p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>