Skip to content

Remove unused function #52

@TomAFrench

Description

@TomAFrench

pub fn lt_field_8_bit(x: Field, y: Field) -> bool {
// Safety: check the comments below
let predicate = unsafe { get_lt_predicate_f(x, y) };
let delta = y as Field - x as Field;
let lt_parameter = 2 * (predicate as Field) * delta - predicate as Field - delta;
// checks that the bit length of lt_parameter is 8
// i.e. checks the sign of lt_parameter
lt_parameter.assert_max_bit_size::<8>();
predicate
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions