Source/NFX/IntMath.cs
/// <summary>
/// Returns argument increased to the nearest number divisible by 8
/// </summary>
Returns argument increased to the nearest number divisible by 8
Returns argument increased to the nearest number divisible by 8
public static int Align8(int i)
        {
          var r = i & 7; 
          return r==0 ? i : i + (8 - r);
        }
public static int Align8 ( int i ) { var r = i & 7 ; return r == 0 ? i : i + ( 8 - r ) ; }
Returns argument increased to the nearest number divisible by 8
Returns argument increased to the nearest number divisible by 8
// 00000111
i
int