feCopy static method

void feCopy(
  1. FieldElement h,
  2. FieldElement f
)

Implementation

static void feCopy(FieldElement h, FieldElement f) {
  final int f0 = f.h[0];
  final int f1 = f.h[1];
  final int f2 = f.h[2];
  final int f3 = f.h[3];
  final int f4 = f.h[4];
  final int f5 = f.h[5];
  final int f6 = f.h[6];
  final int f7 = f.h[7];
  final int f8 = f.h[8];
  final int f9 = f.h[9];
  h.h[0] = f0;
  h.h[1] = f1;
  h.h[2] = f2;
  h.h[3] = f3;
  h.h[4] = f4;
  h.h[5] = f5;
  h.h[6] = f6;
  h.h[7] = f7;
  h.h[8] = f8;
  h.h[9] = f9;
}