Search Results for

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Flame.Constants
    Assembly: Flame.dll
    Syntax
    public struct SignedDivisionMagic

    Constructors

    | Edit this page View Source

    SignedDivisionMagic(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 Source

    Multiplier

    Gets the constant factor to multiply by.

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

    The constant factor to multiply by.

    | Edit this page View Source

    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.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX