Skip to content

Constructor? #6

Open
Open

Description

@ufcpp
    public DoubleView(Bit52 faction, Bit11 exponent, Bit1 Sign)
    {
        Value = 0;
        Value |= (fraction & FractionMask) << FractionShift)
        Value |= (fraction & ExponentMask) << ExponentShift)
        Value |= (fraction & SignMask) << SignShift)
    }

Activity

  1. fanoI commented on Apr 28, 2017

    @fanoI

    Yes could be useful to create the Bitfield based on his components, probably another useful constructor could be one that takes its underlyng type as argument that is:

        public DoubleView(ulong value)
        {
            Value = value;
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions