Show / Hide Table of Contents

    Struct UnsignedDivisionMagic

    A collection of magic constants that can be used to perform unsigned 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 UnsignedDivisionMagic

    Constructors

    | Improve this Doc View Source

    UnsignedDivisionMagic(IntegerConstant, Int32, Boolean)

    Collects unsigned division magic constants.

    Declaration
    public UnsignedDivisionMagic(IntegerConstant multiplier, int shiftAmount, bool useAdd)
    Parameters
    Type Name Description
    IntegerConstant multiplier

    A constant factor to multiply by.

    System.Int32 shiftAmount

    An amount of bits to shift.

    System.Boolean useAdd

    A Boolean flag that tells if an addition should be used.

    Properties

    | Improve this Doc View Source

    Multiplier

    Gets the constant factor to multiply by.

    Declaration
    public IntegerConstant Multiplier { get; }
    Property Value
    Type Description
    IntegerConstant

    The constant factor to multiply by.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    UseAdd

    Gets a Boolean flag that tells if an add-operation should be used.

    Declaration
    public bool UseAdd { get; }
    Property Value
    Type Description
    System.Boolean

    true if an addition should be performed; otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX