getNormalizedV static method

int getNormalizedV(
  1. int v
)

Implementation

static int getNormalizedV(int v) {
  if (v == 0 || v == 27) {
    return 27;
  }
  if (v == 1 || v == 28) {
    return 28;
  }
  return v & 1 == 1 ? 27 : 28;
}