<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE funcs
  SYSTEM '../../../clonk.dtd'>
<?xml-stylesheet type="text/xsl" href="../../../clonk.xsl"?>
<funcs>
  <func>
    <title>SetBit</title>
    <category>Arithmetics</category>
    <version>5.1 OC</version>
    <syntax>
      <rtype>int</rtype>
      <params>
        <param>
          <type>int</type>
          <name>old_value</name>
          <desc>Old value of the bit masc</desc>
        </param>
        <param>
          <type>int</type>
          <name>bit_number</name>
          <desc>The bit to change</desc>
        </param>
        <param>
          <type>bool</type>
          <name>bit</name>
          <desc>The new value of the bit</desc>
        </param>
      </params>
    </syntax>
    <desc>Returns the new bit mask with the bit at position bit_number replaced by bit.</desc>
    <related>
      <funclink>GetBit</funclink>
      <funclink>ToggleBit</funclink>
    </related>
  </func>
  <author>Newton</author><date>2009-07</date>
</funcs>
