Files
2026-08-27 10:56:38 -06:00

43 lines
563 B
C#

namespace System;
internal struct MutableDecimal
{
public uint Flags;
public uint High;
public uint Low;
public uint Mid;
private const uint SignMask = 2147483648u;
private const uint ScaleMask = 16711680u;
private const int ScaleShift = 16;
public bool IsNegative
{
get
{
return (Flags & 0x80000000u) != 0;
}
set
{
Flags = (Flags & 0x7FFFFFFF) | (uint)(value ? int.MinValue : 0);
}
}
public int Scale
{
get
{
return (byte)(Flags >> 16);
}
set
{
Flags = (Flags & 0xFF00FFFFu) | (uint)(value << 16);
}
}
}