Show / Hide Table of Contents

    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 Source

    SignedDivisionMagic(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 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
    Back to top Generated by DocFX