fn limbsCmpLt(x: anytype, y: @TypeOf(x)) bool xy: @TypeOf(x)894
895
896
897
898
899
900 fn limbsCmpLt(x: anytype, y: @TypeOf(x)) bool {
var c: u1 = 0;
for (x.limbsConst(), y.limbsConst()) |x_limb, y_limb| {
c = @truncate((x_limb -% y_limb -% c) >> t_bits);
}
return c != 0;
}
Compares two big integers in constant time, returning true if x < y.