Changeset 5334 for icGREP/icgrepdevel/icgrep/kernels
 Timestamp:
 Feb 20, 2017, 11:30:34 AM (2 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

icGREP/icgrepdevel/icgrep/kernels/swizzle.cpp
r5332 r5334 19 19 , mInputSets(inputSets) 20 20 , mOutputSets(outputSets) { 21 assert((fieldWidth > 0) && ( fieldWidth & (fieldWidth  1) == 0) && "fieldWidth must be a power of 2");21 assert((fieldWidth > 0) && ((fieldWidth & (fieldWidth  1)) == 0) && "fieldWidth must be a power of 2"); 22 22 assert(fieldWidth < iBuilder>getBitBlockWidth() && "fieldWidth must be less than the block width"); 23 23 assert(mSwizzleFactor > 1 && "fieldWidth must be less than the block width"); … … 26 26 // Maybe the following is unnecessary. 27 27 //assert(inputStreamsPerSet % swizzleFactor == 0 && "input sets must be an exact multiple of the swizzle factor"); 28 assert(outputStreamsPerSet % swizzleFactor == 0 && "output sets must be an exact multiple of the swizzle factor");28 assert(outputStreamsPerSet % mSwizzleFactor == 0 && "output sets must be an exact multiple of the swizzle factor"); 29 29 for (unsigned i = 0; i < mInputSets; i++) { 30 30 mStreamSetInputs.push_back(Binding{iBuilder>getStreamSetTy(inputStreamsPerSet, 1), "inputGroup" + std::to_string(i)});
Note: See TracChangeset
for help on using the changeset viewer.