Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > ffa1e6f5ad04360808fe8840fe3ba036 > files > 279

vrq-devel-1.0.88-1.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>vrq: /net/fileserver/nas/home/mdh/vrq/src/cvector.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
   <tr>
    <td width="180"><a href="index.html"><img src="vrq.png" width="150" height="100" border="0" alt="vrq"></a></td>
    <td background="top_bg.png" align="right" width="100%">
      <img src="glyth.png" width="500" height="100" border="0" alt="">
    </td>
   </tr>
   <tr>
    <td background="#FFFFFF" align="right" width="50" height="4"></td>
   </tr>
  </table>
</head><body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>/net/fileserver/nas/home/mdh/vrq/src/cvector.h</h1>  </div>
</div>
<div class="contents">
<a href="cvector_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (C) 1997-2007, Mark Hummel</span>
<a name="l00003"></a>00003 <span class="comment"> * This file is part of Vrq.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Vrq is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment"> * modify it under the terms of the GNU General Public</span>
<a name="l00007"></a>00007 <span class="comment"> * License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment"> * version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * Vrq is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment"> * General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"> *</span>
<a name="l00015"></a>00015 <span class="comment"> * You should have received a copy of the GNU General Public</span>
<a name="l00016"></a>00016 <span class="comment"> * License along with this library; if not, write to the Free Software</span>
<a name="l00017"></a>00017 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, </span>
<a name="l00018"></a>00018 <span class="comment"> * Boston, MA  02110-1301  USA</span>
<a name="l00019"></a>00019 <span class="comment"> *****************************************************************************</span>
<a name="l00020"></a>00020 <span class="comment"> */</span>
<a name="l00021"></a>00021 <span class="comment">/******************************************************************************</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> *</span>
<a name="l00024"></a>00024 <span class="comment"> *         cvector.hpp</span>
<a name="l00025"></a>00025 <span class="comment"> *              - abstract class for bit vector declaration </span>
<a name="l00026"></a>00026 <span class="comment"> *</span>
<a name="l00027"></a>00027 <span class="comment"> *</span>
<a name="l00028"></a>00028 <span class="comment"> ******************************************************************************</span>
<a name="l00029"></a>00029 <span class="comment"> */</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef CVECTOR_HPP</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define CVECTOR_HPP</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00036"></a>00036 <span class="preprocessor">#include &quot;<a class="code" href="glue_8h.html">glue.h</a>&quot;</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include &quot;<a class="code" href="cuint_8h.html">cuint.h</a>&quot;</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include &quot;<a class="code" href="cdecl_8h.html">cdecl.h</a>&quot;</span>
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 
<a name="l00058"></a><a class="code" href="classCVector.html">00058</a> <span class="keyword">class </span><a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>
<a name="l00059"></a>00059 {
<a name="l00060"></a>00060 <span class="keyword">private</span>:
<a name="l00061"></a>00061         <a class="code" href="classCUInt.html" title="Infinite precision unsigned arithmetic class Storage within object will be used whenever possible...">CUInt</a>           aval;          
<a name="l00062"></a>00062         <a class="code" href="classCUInt.html" title="Infinite precision unsigned arithmetic class Storage within object will be used whenever possible...">CUInt</a>           bval;          
<a name="l00063"></a>00063         <a class="code" href="classCUInt.html" title="Infinite precision unsigned arithmetic class Storage within object will be used whenever possible...">CUInt</a>           hook;          
<a name="l00064"></a>00064         <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a>           width;         
<a name="l00065"></a>00065         <span class="keywordtype">int</span>             sized;         
<a name="l00066"></a>00066 
<a name="l00067"></a>00067         <span class="keywordtype">int</span>             based;         
<a name="l00068"></a>00068 
<a name="l00069"></a>00069         <span class="keywordtype">int</span>             unbased;       
<a name="l00070"></a>00070 
<a name="l00071"></a>00071         <span class="keywordtype">int</span>             preferredBase; 
<a name="l00072"></a>00072 
<a name="l00073"></a>00073         <span class="keywordtype">int</span>             _signed;       
<a name="l00074"></a>00074         <span class="keywordtype">int</span>             overflowed; <span class="comment">// set to 1 if string conversion overflowed</span>
<a name="l00075"></a>00075 
<a name="l00076"></a>00076         <span class="keyword">static</span> <span class="keywordtype">int</span>      bufferSize;    
<a name="l00077"></a>00077         <span class="keyword">static</span> <span class="keywordtype">char</span>*    buffer;        
<a name="l00078"></a>00078 <span class="keyword">public</span>:
<a name="l00085"></a><a class="code" href="classCVector.html#a381ec54a1446d581e81b3c4b65347915">00085</a>         <span class="keyword">static</span> <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* <a class="code" href="classCVector.html#a381ec54a1446d581e81b3c4b65347915" title="Create vector allocating all storage from given heap.">AllocFromHeap</a>( <a class="code" href="classCObstack.html" title="Bulk object allocation object.">CObstack</a>* aHeap, <span class="keywordtype">int</span> width ) {
<a name="l00086"></a>00086                 <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* v = <span class="keyword">new</span>(aHeap) <a class="code" href="classCVector.html#afe4fcdcc185b2b470e093c080605e148" title="Create bit vector of given width.">CVector</a>( width );
<a name="l00087"></a>00087                 v-&gt;SetHeap( aHeap );    
<a name="l00088"></a>00088                 <span class="keywordflow">return</span> v;
<a name="l00089"></a>00089         }
<a name="l00090"></a>00090 
<a name="l00095"></a>00095         <a class="code" href="classCVector.html#afe4fcdcc185b2b470e093c080605e148" title="Create bit vector of given width.">CVector</a>( <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> aWidth ); 
<a name="l00099"></a>00099         <a class="code" href="classCVector.html#a29b5b40a40c27f7fbdd873fc0d5e47fa" title="Destroy vector freeing storage if possible.">~CVector</a>();
<a name="l00106"></a>00106         <span class="keywordtype">unsigned</span> <a class="code" href="classCVector.html#ac21e997e811068f87e4714474cc85b16" title="Calculate a hash for vector value.">Hash</a>();
<a name="l00111"></a><a class="code" href="classCVector.html#a831175d786bf756025296f278be3ab42">00111</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a831175d786bf756025296f278be3ab42" title="Determine if any bit is either x or z.">HasXZ</a>() { <span class="keywordflow">return</span> bval != 0; }
<a name="l00116"></a><a class="code" href="classCVector.html#a4c922e3fc4059c41499ccaebe556c1dd">00116</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a4c922e3fc4059c41499ccaebe556c1dd" title="Determine if any bit is a z.">HasZ</a>( <span class="keywordtype">void</span> ) { <span class="keywordflow">return</span> (~aval &amp; bval) != 0; }
<a name="l00121"></a><a class="code" href="classCVector.html#a2ef5db024db0e710e4713aba6b3564f1">00121</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a2ef5db024db0e710e4713aba6b3564f1" title="Determine if any bit is a x.">HasX</a>( <span class="keywordtype">void</span> ) { <span class="keywordflow">return</span> (aval &amp; bval) != 0; }
<a name="l00126"></a><a class="code" href="classCVector.html#ab11f23baf5e59a702c59ba1dcc5e10ab">00126</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#ab11f23baf5e59a702c59ba1dcc5e10ab" title="Determine if value is negative.">IsNegative</a>() 
<a name="l00127"></a>00127                 { <span class="keywordflow">return</span> _signed &amp;&amp; ((aval&gt;&gt;(width-1)) &amp; 1) != 0 &amp;&amp; !<a class="code" href="classCVector.html#a831175d786bf756025296f278be3ab42" title="Determine if any bit is either x or z.">HasXZ</a>(); }
<a name="l00132"></a><a class="code" href="classCVector.html#a949419bc0ed97b6dec80742c9f0addd1">00132</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a949419bc0ed97b6dec80742c9f0addd1" title="Set preferred base for printing value.">SetPreferredBase</a>( <span class="keywordtype">int</span> base ) { preferredBase = base; }
<a name="l00137"></a><a class="code" href="classCVector.html#aea371ed98ce8941208c0704ecc1c1179">00137</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#aea371ed98ce8941208c0704ecc1c1179" title="Get preferred base for printing value.">GetPreferredBase</a>() { <span class="keywordflow">return</span> preferredBase; }
<a name="l00143"></a><a class="code" href="classCVector.html#aa8cb2798f2245ab831b41907aaae4fa6">00143</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#aa8cb2798f2245ab831b41907aaae4fa6" title="Get sized attribute.">Sized</a>() { <span class="keywordflow">return</span> sized; }
<a name="l00149"></a><a class="code" href="classCVector.html#a638d4d7d60090d1132e46a58e1f76d82">00149</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a638d4d7d60090d1132e46a58e1f76d82" title="Set sized attribute.">Sized</a>( <span class="keywordtype">int</span> sized ) { this-&gt;sized = sized; }
<a name="l00155"></a><a class="code" href="classCVector.html#a19c69a84aebf15902cacff286ea2d591">00155</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a19c69a84aebf15902cacff286ea2d591" title="Get based attribute.">Based</a>() { <span class="keywordflow">return</span> based; }
<a name="l00161"></a><a class="code" href="classCVector.html#a3e02a419a4334ef72ac6946a8d565815">00161</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a3e02a419a4334ef72ac6946a8d565815" title="Set based attribute.">Based</a>( <span class="keywordtype">int</span> based ) { this-&gt;based = based; }
<a name="l00167"></a><a class="code" href="classCVector.html#ab52a20aaa5f349474525b14db355db96">00167</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#ab52a20aaa5f349474525b14db355db96" title="Get unbased attribute.">Unbased</a>() { <span class="keywordflow">return</span> unbased; }
<a name="l00173"></a><a class="code" href="classCVector.html#a3a71c2d81ecef4befc01598e90fbc3f7">00173</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a3a71c2d81ecef4befc01598e90fbc3f7" title="Set unbased attribute.">Unbased</a>( <span class="keywordtype">int</span> unbased ) { this-&gt;unbased = unbased; }
<a name="l00178"></a><a class="code" href="classCVector.html#ab06adf2ea848fd8b026059bccf469d74">00178</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#ab06adf2ea848fd8b026059bccf469d74" title="Get signed attribute.">Signed</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> _signed; }
<a name="l00183"></a><a class="code" href="classCVector.html#a9e10e50c44c7cf2b898271a39c0b23f0">00183</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a9e10e50c44c7cf2b898271a39c0b23f0" title="set signed attribute.">Signed</a>( <span class="keywordtype">int</span> _signed ) { this-&gt;_signed = _signed; }
<a name="l00189"></a><a class="code" href="classCVector.html#aeffff70204bca27f0e1e9102c443fdcf">00189</a>         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#aeffff70204bca27f0e1e9102c443fdcf" title="Determine if conversion from ascii overflowed the give vector width.">Overflowed</a>() { <span class="keywordflow">return</span> overflowed; }
<a name="l00194"></a>00194         <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a>   <a class="code" href="classCVector.html#aad5dd1c7f2d819694e4e59101f68b3b4" title="Get vector bit width.">GetWidth</a>( <span class="keywordtype">void</span> );
<a name="l00202"></a>00202         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#acda2ab1fa28b2f5485a42eaec3f657a8" title="Set width of vector in bits.">SetWidth</a>( <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> newWidth );
<a name="l00206"></a>00206         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a1d928360afa158f1b5d04ee8761a7612" title="Set vector value to X.">SetToX</a>();
<a name="l00211"></a>00211         <span class="keyword">const</span> <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>&amp; <a class="code" href="classCVector.html#ae61e64d168929df152f1335b4ea45d21" title="Assignment operator.">operator=</a>( <span class="keyword">const</span> <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>&amp; v );
<a name="l00216"></a>00216         <a class="code" href="glue_8h.html#a0b39d6d754cb24c708b0f2bdbe88130e" title="Short cut for unsigned 32 bit integer.">UINT32</a>   <a class="code" href="classCVector.html#ae61e64d168929df152f1335b4ea45d21" title="Assignment operator.">operator=</a>( <a class="code" href="glue_8h.html#a0b39d6d754cb24c708b0f2bdbe88130e" title="Short cut for unsigned 32 bit integer.">UINT32</a> v );
<a name="l00221"></a>00221         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a60380041e45118c3c17c257fdfc9493f" title="Load decimal value from string.">LoadDecimal</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span> );      
<a name="l00226"></a>00226         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a94355d3ccc4768b66e474e3fa2bb326f" title="Load binary value from string.">LoadBinary</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span> );       
<a name="l00231"></a>00231         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#aea1c8d2c9b03fd26245dd7e0778fb756" title="Load octal value from string.">LoadOctal</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span> );        
<a name="l00236"></a>00236         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a2a50c7625cfe79ae307ce7f730148fac" title="Load hex value from string.">LoadHex</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span> );  
<a name="l00241"></a>00241         <span class="keywordtype">int</span>     <a class="code" href="classCVector.html#a917edd9dc234b92be36a5ecaadc340c3" title="Load string value from string.">LoadString</a>( <span class="keyword">const</span> <span class="keywordtype">char</span>* <span class="keywordtype">string</span> );       
<a name="l00248"></a>00248         <span class="keywordtype">char</span>*   <a class="code" href="classCVector.html#ae7ea1d7eed2a9f2497a877cb8030ba4f" title="Convert vector to string using preferred base.">GetVString</a>( <span class="keywordtype">void</span> );
<a name="l00255"></a>00255         <span class="keywordtype">char</span>*   <a class="code" href="classCVector.html#a596a8507b71e0edb07bc823a13d57827" title="Convert vector to decimal string.">GetDecimal</a>( <span class="keywordtype">void</span> );     
<a name="l00262"></a>00262         <span class="keywordtype">char</span>*   <a class="code" href="classCVector.html#a0307ca41072ea170648201ab17c82fe1" title="Convert vector to binary string.">GetBinary</a>( <span class="keywordtype">void</span> );      
<a name="l00269"></a>00269         <span class="keywordtype">char</span>*   <a class="code" href="classCVector.html#a2d31eadf9fd14d23d4dd7d409b47e16b" title="Convert vector to octal string.">GetOctal</a>( <span class="keywordtype">void</span> );       
<a name="l00276"></a>00276         <span class="keywordtype">char</span>*   <a class="code" href="classCVector.html#a1cfb9ccd43aed7a673c0f7159fcdf59e" title="Convert vector to hex string.">GetHex</a>( <span class="keywordtype">void</span> ); 
<a name="l00284"></a>00284         <span class="keywordtype">char</span>*   <a class="code" href="classCVector.html#ad71a0b09b4f109072b4adaf1a6acbc0b" title="Convert vector to ascii string.">GetString</a>( <span class="keywordtype">void</span> );      
<a name="l00290"></a>00290         <span class="keywordtype">int</span> <a class="code" href="classCVector.html#a7c45ce6b939eeb780a89191f677c147c" title="Equality operator.">operator==</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>&amp; v );
<a name="l00296"></a>00296         <span class="keywordtype">int</span> <a class="code" href="classCVector.html#a7c45ce6b939eeb780a89191f677c147c" title="Equality operator.">operator==</a>( <a class="code" href="glue_8h.html#a0b39d6d754cb24c708b0f2bdbe88130e" title="Short cut for unsigned 32 bit integer.">UINT32</a> i );
<a name="l00302"></a><a class="code" href="classCVector.html#a856aa4ac2df0f390904cab66f262e137">00302</a>         <span class="keywordtype">int</span> <a class="code" href="classCVector.html#a856aa4ac2df0f390904cab66f262e137" title="Inequality operator.">operator!=</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>&amp; v ) { <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == v); }
<a name="l00308"></a><a class="code" href="classCVector.html#ae9de61e51ea92e8f6634a0c15345b033">00308</a>         <span class="keywordtype">int</span> <a class="code" href="classCVector.html#ae9de61e51ea92e8f6634a0c15345b033" title="Inequality operator.">operator!=</a>( <a class="code" href="glue_8h.html#a0b39d6d754cb24c708b0f2bdbe88130e" title="Short cut for unsigned 32 bit integer.">UINT32</a> i ) { <span class="keywordflow">return</span> !(*<span class="keyword">this</span> == i); }
<a name="l00314"></a><a class="code" href="classCVector.html#abe66eb9a26de91718229f9563106c27a">00314</a>         <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a>   <a class="code" href="classCVector.html#abe66eb9a26de91718229f9563106c27a" title="Get value as a 32 bit integer.">GetINT32</a>( <span class="keywordtype">void</span> )
<a name="l00315"></a>00315         {
<a name="l00316"></a>00316                 <span class="keywordflow">if</span>( <a class="code" href="classCVector.html#ab11f23baf5e59a702c59ba1dcc5e10ab" title="Determine if value is negative.">IsNegative</a>() ) {
<a name="l00317"></a>00317                     <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a> n(<a class="code" href="classCVector.html#aad5dd1c7f2d819694e4e59101f68b3b4" title="Get vector bit width.">GetWidth</a>());
<a name="l00318"></a>00318                     n.<a class="code" href="classCVector.html#ab06adf2ea848fd8b026059bccf469d74" title="Get signed attribute.">Signed</a>(1);
<a name="l00319"></a>00319                     <a class="code" href="cnode_8h.html#a8f34adc7b597143cb6cf8aed59dcd337">Neg</a>( &amp;n, <span class="keyword">this</span> );
<a name="l00320"></a>00320                     <span class="keywordflow">return</span> -(INT32)n.aval.<a class="code" href="classCUInt.html#ad95d4c9243babb4991f864ef26890906">GetUINT32</a>();
<a name="l00321"></a>00321                 }
<a name="l00322"></a>00322                 
<a name="l00323"></a>00323                 <span class="keywordflow">return</span> aval.<a class="code" href="classCUInt.html#ad95d4c9243babb4991f864ef26890906">GetUINT32</a>();
<a name="l00324"></a>00324         }
<a name="l00330"></a><a class="code" href="classCVector.html#a86fccf960e09e09d19cf02f3c299c849">00330</a>         <a class="code" href="glue_8h.html#af16992cf571ce4103a92355761cc471e" title="Short cut for signed 64 bit integer.">INT64</a>   <a class="code" href="classCVector.html#a86fccf960e09e09d19cf02f3c299c849" title="Get value as a 64 bit integer.">GetINT64</a>( <span class="keywordtype">void</span> )
<a name="l00331"></a>00331         {
<a name="l00332"></a>00332                 <span class="keywordflow">if</span>( <a class="code" href="classCVector.html#ab11f23baf5e59a702c59ba1dcc5e10ab" title="Determine if value is negative.">IsNegative</a>() ) {
<a name="l00333"></a>00333                     <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a> n(<a class="code" href="classCVector.html#aad5dd1c7f2d819694e4e59101f68b3b4" title="Get vector bit width.">GetWidth</a>());
<a name="l00334"></a>00334                     n.<a class="code" href="classCVector.html#ab06adf2ea848fd8b026059bccf469d74" title="Get signed attribute.">Signed</a>(1);
<a name="l00335"></a>00335                     <a class="code" href="cnode_8h.html#a8f34adc7b597143cb6cf8aed59dcd337">Neg</a>( &amp;n, <span class="keyword">this</span> );
<a name="l00336"></a>00336                     <span class="keywordflow">return</span> -(INT64)n.aval.<a class="code" href="classCUInt.html#ad512e0339d84716cf16f5f128b168adb">GetUINT64</a>();
<a name="l00337"></a>00337                 }
<a name="l00338"></a>00338                 
<a name="l00339"></a>00339                 <span class="keywordflow">return</span> aval.<a class="code" href="classCUInt.html#ad512e0339d84716cf16f5f128b168adb">GetUINT64</a>();
<a name="l00340"></a>00340         }
<a name="l00345"></a><a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242">00345</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> v )
<a name="l00346"></a>00346         {
<a name="l00347"></a>00347                 aval = (<span class="keywordtype">unsigned</span> int)v; 
<a name="l00348"></a>00348                 bval = 0;
<a name="l00349"></a>00349         }
<a name="l00354"></a>00354         <span class="keywordtype">void</span> <a class="code" href="classCVector.html#aba265451c758d0eadff8adeb9a2f58b6" title="Load vector with integer part of real value.">LoadReal</a>( <span class="keywordtype">double</span> d );
<a name="l00359"></a>00359         <span class="keywordtype">double</span> <a class="code" href="classCVector.html#a045121794642ab1acb2427b356b34657" title="Get vector value as a real.">GetReal</a>();
<a name="l00364"></a><a class="code" href="classCVector.html#ac6773588634a1f2a32e3761c8987d2e3">00364</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#ac6773588634a1f2a32e3761c8987d2e3" title="Set vector to aval part of this vector.">GetAval</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>&amp; v ) {
<a name="l00365"></a>00365                 v.aval = aval;
<a name="l00366"></a>00366                 bval = 0;
<a name="l00367"></a>00367         }
<a name="l00372"></a><a class="code" href="classCVector.html#a230e2bf4793b61d2d1f74c69c3955cb6">00372</a>         <span class="keywordtype">void</span>    <a class="code" href="classCVector.html#a230e2bf4793b61d2d1f74c69c3955cb6" title="Set vector to bval part of this vector.">GetBval</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>&amp; v ) {
<a name="l00373"></a>00373                 v.aval = bval;
<a name="l00374"></a>00374                 bval = 0;
<a name="l00375"></a>00375         }
<a name="l00376"></a>00376 
<a name="l00380"></a>00380         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#aa36924ee5bc5b3102a9e0fefb9c910af">Add</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00381"></a>00381         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#a8b9b0f83482201fd71ae7d0a03277d0e">Sub</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00382"></a>00382         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#a775bed8a29aa227cd06e2444500621f7">Mul</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00383"></a>00383         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#ac7b57eaafd8f2e8712dd89fe61674c3b">Div</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00384"></a>00384         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#a8244e2d6ac60db51a301f972620c8e98">Pow</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00385"></a>00385         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Lsha( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00386"></a>00386         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rsha( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00387"></a>00387         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Lsh( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00388"></a>00388         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rsh( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00389"></a>00389         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Cat( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00390"></a>00390         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rep( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00391"></a>00391         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Mod( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00392"></a>00392         <span class="keyword">friend</span> <span class="keywordtype">void</span>     And( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00393"></a>00393         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Or( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00394"></a>00394         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Xor( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00395"></a>00395         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Xnor( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00396"></a>00396         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Com( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00397"></a>00397         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#a8f34adc7b597143cb6cf8aed59dcd337">Neg</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00398"></a>00398         <span class="keyword">friend</span> <span class="keywordtype">void</span>     <a class="code" href="cnode_8h.html#ae2d7f70032d876d9ad3e479954422a4e">Plus</a>( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00399"></a>00399         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Not( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00400"></a>00400         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Le( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00401"></a>00401         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Lt( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00402"></a>00402         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Ge( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00403"></a>00403         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Gt( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00404"></a>00404         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Eq( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00405"></a>00405         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Ne( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00406"></a>00406         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Ceq( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00407"></a>00407         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Cne( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00408"></a>00408         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Lor( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00409"></a>00409         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Land( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00410"></a>00410         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rand( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00411"></a>00411         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Ror( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00412"></a>00412         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rnand( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00413"></a>00413         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rnor( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00414"></a>00414         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rxor( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00415"></a>00415         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Rxnor( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a );
<a name="l00416"></a>00416         <span class="keyword">friend</span> <span class="keywordtype">void</span>     Hook( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* c, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* b );
<a name="l00420"></a>00420         <span class="keywordtype">int</span> IsWidthConstant() { <span class="keywordflow">return</span> TRUE; }
<a name="l00421"></a>00421         <span class="keywordtype">int</span> IsWidthVolatile() { <span class="keywordflow">return</span> FALSE; }
<a name="l00422"></a>00422         <span class="keywordtype">int</span> IsWidthEvaluateable() { <span class="keywordflow">return</span> TRUE; }
<a name="l00423"></a>00423         <a class="code" href="classCNode.html" title="Primary data structure representing parse tree nodes.">CNode</a>* GetWidthExp();
<a name="l00424"></a>00424         <span class="keyword">virtual</span> <a class="code" href="cdatatype_8h.html#aff499c00c9873bf3fcf1c46bf2652790" title="Expression node type.">NodeType_t</a> GetNodeType( <span class="keywordtype">void</span> );
<a name="l00425"></a>00425 <span class="keyword">private</span>:
<a name="l00426"></a>00426         <span class="keywordtype">void</span> Adjust( <span class="keywordtype">void</span> );
<a name="l00427"></a>00427         <span class="keywordtype">void</span> GrowBuffer( <span class="keywordtype">int</span> bytes )
<a name="l00428"></a>00428         {
<a name="l00429"></a>00429                 <span class="keywordflow">if</span>( bytes &lt;= bufferSize ) {
<a name="l00430"></a>00430                         <span class="keywordflow">return</span>;
<a name="l00431"></a>00431                 }
<a name="l00432"></a>00432                 <span class="keywordflow">if</span>( buffer != NULL ) {
<a name="l00433"></a>00433                         <a class="code" href="main_8cc.html#a75b14974d5279e0e072d3b157dc996a4">shell_xfree</a>( buffer, bufferSize );
<a name="l00434"></a>00434                 }
<a name="l00435"></a>00435                 bufferSize = bytes * 2;
<a name="l00436"></a>00436                 buffer = (<span class="keywordtype">char</span>*) <a class="code" href="main_8cc.html#acec925771872e73156971d2a58a67a3f">shell_xmalloc</a>( bufferSize );
<a name="l00437"></a>00437         }
<a name="l00438"></a>00438         <span class="keywordtype">void</span> SetHeap( <a class="code" href="classCObstack.html" title="Bulk object allocation object.">CObstack</a>* aHeap ) {
<a name="l00439"></a>00439                 aval.<a class="code" href="classCUInt.html#ab083c4b8adab570a54e9930289435212" title="Set heap to be used for storage allocation.">SetHeap</a>( aHeap );
<a name="l00440"></a>00440                 bval.<a class="code" href="classCUInt.html#ab083c4b8adab570a54e9930289435212" title="Set heap to be used for storage allocation.">SetHeap</a>( aHeap );
<a name="l00441"></a>00441         }
<a name="l00448"></a>00448         <span class="keywordtype">void</span>* operator new(<span class="keywordtype">size_t</span> size, <a class="code" href="classCObstack.html" title="Bulk object allocation object.">CObstack</a>* heap) {
<a name="l00449"></a>00449                 <span class="keywordflow">return</span> heap-&gt;<a class="code" href="classCObstack.html#a5a34d5a2800a901ed15366c11bf269ef" title="Allocate block of storage with given size.">Alloc</a>( size );
<a name="l00450"></a>00450         }       
<a name="l00454"></a>00454 };
<a name="l00455"></a>00455 
<a name="l00461"></a>00461 <span class="keyword">inline</span> <span class="keywordtype">void</span> Le( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00462"></a>00462 {
<a name="l00463"></a>00463         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( *a &lt;= *b );
<a name="l00464"></a>00464 }
<a name="l00465"></a>00465 
<a name="l00466"></a>00466 
<a name="l00467"></a>00467 <span class="keyword">inline</span> <span class="keywordtype">void</span> Le( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00468"></a>00468 {
<a name="l00469"></a>00469         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a &lt;= b );
<a name="l00470"></a>00470 }
<a name="l00471"></a>00471 
<a name="l00472"></a>00472 <span class="keyword">inline</span> <span class="keywordtype">void</span> Lt( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00473"></a>00473 {
<a name="l00474"></a>00474         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( *a &lt; *b );
<a name="l00475"></a>00475 }
<a name="l00476"></a>00476 
<a name="l00477"></a>00477 
<a name="l00478"></a>00478 <span class="keyword">inline</span> <span class="keywordtype">void</span> Lt( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00479"></a>00479 {
<a name="l00480"></a>00480         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a &lt; b );
<a name="l00481"></a>00481 }
<a name="l00482"></a>00482 
<a name="l00483"></a>00483 <span class="keyword">inline</span> <span class="keywordtype">void</span> Ge( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00484"></a>00484 {
<a name="l00485"></a>00485         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( *a &gt;= *b );
<a name="l00486"></a>00486 }
<a name="l00487"></a>00487 
<a name="l00488"></a>00488 
<a name="l00489"></a>00489 <span class="keyword">inline</span> <span class="keywordtype">void</span> Ge( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00490"></a>00490 {
<a name="l00491"></a>00491         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a &gt;= b );
<a name="l00492"></a>00492 }
<a name="l00493"></a>00493 
<a name="l00494"></a>00494 <span class="keyword">inline</span> <span class="keywordtype">void</span> Gt( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00495"></a>00495 {
<a name="l00496"></a>00496         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( *a &gt; *b );
<a name="l00497"></a>00497 }
<a name="l00498"></a>00498 
<a name="l00499"></a>00499 
<a name="l00500"></a>00500 <span class="keyword">inline</span> <span class="keywordtype">void</span> Gt( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00501"></a>00501 {
<a name="l00502"></a>00502         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a &gt; b );
<a name="l00503"></a>00503 }
<a name="l00504"></a>00504 
<a name="l00505"></a>00505 
<a name="l00506"></a>00506 <span class="keyword">inline</span> <span class="keywordtype">void</span> Ne( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00507"></a>00507 {
<a name="l00508"></a>00508         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( *a != *b );
<a name="l00509"></a>00509 }
<a name="l00510"></a>00510 
<a name="l00511"></a>00511 <span class="keyword">inline</span> <span class="keywordtype">void</span> Ne( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00512"></a>00512 {
<a name="l00513"></a>00513         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a != b );
<a name="l00514"></a>00514 }
<a name="l00515"></a>00515 
<a name="l00516"></a>00516 <span class="keyword">inline</span> <span class="keywordtype">void</span> Eq( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00517"></a>00517 {
<a name="l00518"></a>00518         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( *a == *b );
<a name="l00519"></a>00519 }
<a name="l00520"></a>00520 
<a name="l00521"></a>00521 <span class="keyword">inline</span> <span class="keywordtype">void</span> Eq( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00522"></a>00522 {
<a name="l00523"></a>00523         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a == b );
<a name="l00524"></a>00524 }
<a name="l00525"></a>00525 
<a name="l00526"></a>00526 <span class="keyword">inline</span> <span class="keywordtype">void</span> Cne( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>*, <span class="keywordtype">double</span>*, <span class="keywordtype">double</span>* )
<a name="l00527"></a>00527 {
<a name="l00528"></a>00528         <a class="code" href="glue_8h.html#a306aa4bd4a150391a2cffc5c3c33bdef" title="This routine should not be used by plugins.">fatal</a>( NULL, <span class="stringliteral">&quot;!== illegal for reals&quot;</span> );
<a name="l00529"></a>00529 }
<a name="l00530"></a>00530 
<a name="l00531"></a>00531 <span class="keyword">inline</span> <span class="keywordtype">void</span> Cne( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00532"></a>00532 {
<a name="l00533"></a>00533         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a != b );
<a name="l00534"></a>00534 }
<a name="l00535"></a>00535 
<a name="l00536"></a>00536 <span class="keyword">inline</span> <span class="keywordtype">void</span> Ceq( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>*, <span class="keywordtype">double</span>*, <span class="keywordtype">double</span>* )
<a name="l00537"></a>00537 {
<a name="l00538"></a>00538         <a class="code" href="glue_8h.html#a306aa4bd4a150391a2cffc5c3c33bdef" title="This routine should not be used by plugins.">fatal</a>( NULL, <span class="stringliteral">&quot;=== illegal for reals&quot;</span> );
<a name="l00539"></a>00539 }
<a name="l00540"></a>00540 
<a name="l00541"></a>00541 <span class="keyword">inline</span> <span class="keywordtype">void</span> Ceq( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* r, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> a, <a class="code" href="glue_8h.html#a0cb58e7e6f0bad369840a52e54a56ae0" title="Short cut for signed 32 bit integer.">INT32</a> b )
<a name="l00542"></a>00542 {
<a name="l00543"></a>00543         r-&gt;<a class="code" href="classCVector.html#a0150f6f81b70b30913b85b6013903242" title="Load vector with integer value.">LoadINT32</a>( a == b );
<a name="l00544"></a>00544 }
<a name="l00545"></a>00545 
<a name="l00549"></a>00549 <span class="keyword">inline</span> <span class="keywordtype">void</span>     LogicalValue( <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* dst, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* a ) 
<a name="l00550"></a>00550 {
<a name="l00551"></a>00551         <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a> zero(a-&gt;<a class="code" href="classCVector.html#aad5dd1c7f2d819694e4e59101f68b3b4" title="Get vector bit width.">GetWidth</a>());
<a name="l00552"></a>00552         Ne( dst, a, &amp;zero );
<a name="l00553"></a>00553 }
<a name="l00554"></a>00554 
<a name="l00555"></a>00555 <span class="keyword">inline</span> <span class="keywordtype">void</span> Hook( <span class="keywordtype">double</span>* r, <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a>* c, <span class="keywordtype">double</span>* a, <span class="keywordtype">double</span>* b )
<a name="l00556"></a>00556 {
<a name="l00557"></a>00557         <a class="code" href="classCVector.html" title="Bit vector class for implementing 4 state verilog signed and unsigned arithmetic.">CVector</a> cond(1);
<a name="l00558"></a>00558         LogicalValue( &amp;cond, c );
<a name="l00559"></a>00559         <span class="keywordflow">if</span>( cond.HasXZ() ) {
<a name="l00560"></a>00560             *r = 0;
<a name="l00561"></a>00561         } <span class="keywordflow">else</span> <span class="keywordflow">if</span>( cond == 0) {
<a name="l00562"></a>00562                 *r = *b;
<a name="l00563"></a>00563         } <span class="keywordflow">else</span> {
<a name="l00564"></a>00564                 *r = *a;
<a name="l00565"></a>00565         }       
<a name="l00566"></a>00566 }
<a name="l00567"></a>00567 
<a name="l00568"></a>00568 <span class="keyword">inline</span> <span class="keywordtype">void</span> Cat( <span class="keywordtype">double</span>*, <span class="keywordtype">double</span>*, <span class="keywordtype">double</span>* )
<a name="l00569"></a>00569 {
<a name="l00570"></a>00570         <a class="code" href="glue_8h.html#a306aa4bd4a150391a2cffc5c3c33bdef" title="This routine should not be used by plugins.">fatal</a>( NULL, <span class="stringliteral">&quot;=== illegal for reals&quot;</span> );
<a name="l00571"></a>00571 }
<a name="l00576"></a>00576 <span class="preprocessor">#endif // CVECTOR_HPP</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>