multiply method

int multiply(
  1. int a,
  2. int b
)

@return product of a and b in GF(size)

Implementation

int multiply(int a, int b) {
  if (a == 0 || b == 0) {
    return 0;
  }
  return _expTable[(_logTable[a] + _logTable[b]) % (_size - 1)];
}