11 instantiations of DecimalRep
Microsoft.CodeAnalysis.CSharp (11)
Utilities\ValueSetFactory.DecimalTC.cs (11)
56return new DecimalRep(low: low - 1, mid: mid, high: high, isNegative: isNegative, scale: scale).Value; 58return new DecimalRep(low: uint.MaxValue, mid: mid - 1, high: high, isNegative: isNegative, scale: scale).Value; 60return new DecimalRep(low: uint.MaxValue, mid: uint.MaxValue, high: high - 1, isNegative: isNegative, scale: scale).Value; 66return new DecimalRep(low: low + 1, mid: mid, high: high, isNegative: isNegative, scale: scale).Value; 68return new DecimalRep(low: 0, mid: mid + 1, high: high, isNegative: isNegative, scale: scale).Value; 70return new DecimalRep(low: 0, mid: 0, high: high + 1, isNegative: isNegative, scale: scale).Value; 80var result = new DecimalRep(low: low + 1, mid: mid, high: high, isNegative: isNegative, scale: scale).Value; 83Debug.Assert(new DecimalRep(low: low, mid: mid, high: high, isNegative: isNegative, scale: scale).Value <= value); 118return new DecimalRep( 179return new DecimalRep(low, mid, high, isNegative, scale); 186return new DecimalRep(low: low, mid: mid, high: high, isNegative: isNegative, scale: scale);
5 references to DecimalRep
Microsoft.CodeAnalysis.CSharp (5)
Utilities\ValueSetFactory.DecimalTC.cs (5)
44var (low, mid, high, isNegative, scale) = DecimalRep.FromValue(value); 45Debug.Assert(scale == DecimalRep.FromValue(value).Normalize().scale); // assert that the input is normalized 126public static decimal Normalize(decimal value) => DecimalRep.FromValue(value).Normalize().Value; 150public DecimalRep Normalize() 182public static DecimalRep FromValue(decimal value)