/// <summary> /// Overloaded. /// Assembles an integer from specified bits. /// </summary> /// <param name="H">First Integer</param> /// <param name="HU">Upper Index of the First Integer (31-0)</param> /// <param name="HL">Lower Index of the First Integer (31-0)</param> /// <returns>Integer resulting from contacting all the bits from high to low.</returns> public static Int32 ComposeBits(Int32 H, Int32 HU, Int32 HL) { return H.Bits(HU, HL); }
/// <summary> /// Overloaded. /// Assembles an integer from specified bits. /// </summary> /// <param name="H">First Integer</param> /// <param name="HU">Upper Index of the First Integer (31-0)</param> /// <param name="HL">Lower Index of the First Integer (31-0)</param> /// <param name="S">Second Integer</param> /// <param name="SU">Upper Index of the Second Integer (31-0)</param> /// <param name="SL">Lower Index of the Second Integer (31-0)</param> /// <returns>Integer resulting from contacting all the bits from high to low.</returns> public static Int32 ComposeBits(Int32 H, Int32 HU, Int32 HL, Int32 S, Int32 SU, Int32 SL) { Int32 Hp = H.Bits(HU, HL); Int32 Sp = S.Bits(SU, SL); return Hp.SAL(SU - SL + 1) | Sp; }