<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Truth table - Page 9 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=truth_table&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=truth_table&amp;p=10">3.Next</a>
</p>
<p>For example, a 32-bit integer can encode the truth table for a LUT with up to 5 inputs.</p>

<p>When using an integer representation of a truth table, the output value of the LUT can be obtained by calculating a bit index k based on the input values of the LUT, in which case the LUT's output value is the kth bit of the integer. For example, to evaluate the output value of a LUT given an <a href="page.php?w=Array_data_structure">array</a> of n Boolean input values, the bit index of the truth table's output value can be computed as follows: if</p><p>
<a accesskey="1" href="page.php?w=truth_table&amp;p=8">1.Previous</a><br />
<a accesskey="3" href="page.php?w=truth_table&amp;p=10">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
