fn computeRR(self: *Self) void self: *Self498
499
500
501
502
503
504
505
506 fn computeRR(self: *Self) void {
self.rr = self.zero;
const n = self.rr.limbs_count();
self.rr.v.limbs()[n - 1] = 1;
for ((n - 1)..(2 * n)) |_| {
self.shiftIn(&self.rr, 0);
}
self.shrink(&self.rr) catch unreachable;
}
Computes R^2 for the Montgomery representation.