fn eql(x: anytype, y: @TypeOf(x)) bool xy: @TypeOf(x)887
888
889
890
891 fn eql(x: anytype, y: @TypeOf(x)) bool {
const c1 = @subWithOverflow(x, y)[1];
const c2 = @subWithOverflow(y, x)[1];
return @as(bool, @bitCast(1 - (c1 | c2)));
}
Compares two values in constant time.