title: Converting Bit Field to int
body: <p>I have bit field declared this way:</p>
  <pre><code>typedef struct morder {
      unsigned int targetRegister : 3;
      unsigned int targetMethodOfAddressing : 3;
      unsigned int originRegister : 3;
      unsigned int originMethodOfAddressing : 3;
      unsigned int oCode : 4;
  } bitset;
  </code></pre>
  <p>I also have int array, and I want to get int value from this array, that represents the actual value of this bit field (which is actually some kind of machine word that I have the parts of it, and I want the int representation of the whole word).</p>