getStrideLength function

dynamic getStrideLength(
  1. dynamic vectorLength
)

Implementation

getStrideLength(vectorLength) {
  var strideLength = 4;

  return vectorLength +
      ((strideLength - (vectorLength % strideLength)) % strideLength);
}