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