internal static uint DecDivMod1E9(ref DecimalRep value) { var high64 = ((ulong)value.UHi << 32) + value.UMid; var div64 = high64 / TenToPowerNine; value.UHi = (uint)(div64 >> 32); value.UMid = (uint)div64; var num = ((high64 - (uint)div64 * TenToPowerNine) << 32) + value.ULo; var div = (uint)(num / TenToPowerNine); value.ULo = div; return((uint)num - div * TenToPowerNine); }
public static bool IsNegative(this DecimalRep @this) => @this.Flags < 0;