secp256k1FeCmpVar static method

int secp256k1FeCmpVar(
  1. Secp256k1Fe a,
  2. Secp256k1Fe b
)

Implementation

static int secp256k1FeCmpVar(Secp256k1Fe a, Secp256k1Fe b) {
  int i;
  for (i = 4; i >= 0; i--) {
    if (a[i] > b[i]) {
      return 1;
    }
    if (a[i] < b[i]) {
      return -1;
    }
  }
  return 0;
}