/// <summary> /// Assert the compatibility of the underlying AlignedArray for the input vector in terms of alignment amount. /// </summary> /// <param name="values">The input vector</param> public static void AssertCompatible(ICpuVector values) { #if DEBUG CpuAlignedVector vec = values as CpuAlignedVector; Contracts.AssertValue(vec); Contracts.Assert(vec.Items.CbAlign == SseUtils.CbAlign); #endif }
/// <summary> /// Assert the compatibility of the underlying AlignedArray for the input vector in terms of alignment amount. /// </summary> /// <param name="values">The input vector</param> public static void AssertCompatible(ICpuVector values) { #if DEBUG CpuAlignedVector vec = values as CpuAlignedVector; Contracts.AssertValue(vec); Contracts.Assert((vec.Items.CbAlign % CpuMathUtils.GetVectorAlignment()) == 0); #endif }