Return word were the lowest bit set in x is cleared - CSharp System

CSharp examples for System:String Endian

Description

Return word were the lowest bit set in x is cleared

Demo Code


using System;/*from   w  ww .j ava  2s  .  co  m*/

public class Main{
        // -------------------------

      // Return word were the lowest bit set in x is cleared.
      // Return 0 for input == 0.
      public static UInt32 DeleteLowestBit( UInt32 x )
      {
         return  x & (x-1);
      }
}

Related Tutorials