Cosmetic rename for more clarity

This commit is contained in:
Zahary Karadjov 2019-08-19 18:15:32 +03:00 committed by zah
parent 888a5aa82d
commit 43bbe48e5f

View File

@ -96,7 +96,7 @@ template loopOverWords(lhs, rhs: BitSeq,
template lastWordBytes(bitseq): auto = template lastWordBytes(bitseq): auto =
Bytes(bitseq).toOpenArray(firstByteOfLastWord, lastByteOfLastWord) Bytes(bitseq).toOpenArray(firstByteOfLastWord, lastByteOfLastWord)
template initBitsVars = template initLastWords =
lhsWord = loadLEBytes(WordType, lastWordBytes(lhs)) lhsWord = loadLEBytes(WordType, lastWordBytes(lhs))
when hasRhs: rhsWord = loadLEBytes(WordType, lastWordBytes(rhs)) when hasRhs: rhsWord = loadLEBytes(WordType, lastWordBytes(rhs))
@ -108,7 +108,7 @@ template loopOverWords(lhs, rhs: BitSeq,
firstByteOfLastWord = bytesCount - lastWordSize firstByteOfLastWord = bytesCount - lastWordSize
lastByteOfLastWord = bytesCount - 1 lastByteOfLastWord = bytesCount - 1
initBitsVars() initLastWords()
let markerPos = log2trunc(lhsWord) let markerPos = log2trunc(lhsWord)
when hasRhs: doAssert log2trunc(rhsWord) == markerPos when hasRhs: doAssert log2trunc(rhsWord) == markerPos