Example #1
0
        public VectorRegisterArea(VectorRegisterArea other) : this()
        {
            for (int i = 0; i < VectorRegisterSize; ++i)
            {
                VectorRegister[i] = other.VectorRegister[i];
            }

            VectorControl = other.VectorControl;
        }
Example #2
0
        public VectorRegisterArea(VectorRegisterArea other) : this()
        {
            if (other.VectorRegister is null)
            {
                throw new ArgumentException("Cannot have empty VectorRegister.", nameof(other));
            }

            if (VectorRegister == null)
            {
                VectorRegister = new M128A[other.VectorRegister.Length];
            }

            for (int i = 0; i < VectorRegisterSize; ++i)
            {
                VectorRegister[i] = other.VectorRegister[i];
            }

            VectorControl = other.VectorControl;
        }