Struct SignedDivisionMagic
A collection of magic constants that can be used to perform signed integer division by constant.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Flame.Constants
Assembly: Flame.dll
Syntax
public struct SignedDivisionMagic
Constructors
| Improve this Doc View SourceSignedDivisionMagic(IntegerConstant, Int32)
Collects signed division magic constants.
Declaration
public SignedDivisionMagic(IntegerConstant multiplier, int shiftAmount)
Parameters
Type | Name | Description |
---|---|---|
IntegerConstant | multiplier | A constant factor to multiply by. |
System.Int32 | shiftAmount | An amount of bits to shift. |
Properties
| Improve this Doc View SourceMultiplier
Gets the constant factor to multiply by.
Declaration
public IntegerConstant Multiplier { get; }
Property Value
Type | Description |
---|---|
IntegerConstant | The constant factor to multiply by. |
ShiftAmount
Gets the number of bits to shift.
Declaration
public int ShiftAmount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The number of bits to shift. |