/// <summary> /// Calculate number of words to fit complete instruction bytecode. /// </summary> /// <returns>Number of words in instruction bytecode.</returns> public override uint GetWordCount() { uint wordCount = 0; wordCount += Pointer.GetWordCount(); wordCount += Object.GetWordCount(); wordCount += Stride.GetWordCount(); wordCount += ColumnMajor.GetWordCount(); wordCount += MemoryAccess?.GetWordCount() ?? 0u; return(wordCount); }
/// <summary> /// Calculate number of words to fit complete instruction bytecode. /// </summary> /// <returns>Number of words in instruction bytecode.</returns> public override uint GetWordCount() { uint wordCount = 0; wordCount += IdResultType.GetWordCount(); wordCount += IdResult.GetWordCount(); wordCount += Execution.GetWordCount(); wordCount += Destination.GetWordCount(); wordCount += Source.GetWordCount(); wordCount += NumElements.GetWordCount(); wordCount += Stride.GetWordCount(); wordCount += Event.GetWordCount(); return(wordCount); }