fn check_digit(w: i64, a: i64, b: i64, c: i64, previous_z: i64) -> i64 {
    if previous_z % 26 + b != w { // x = 1
        26 * previous_z / a + w + c
    }
    else { // x = 0
        previous_z / a
    }
}
/// w is the input number
/// a is the value from line 5
/// b is the value from line 6
/// c is the value from line 16
///
/// This function is a high level version of the assembly code
w is the input number
a is the value from line 5
b is the value from line 6
c is the value from line 16

This function is a high level version of the assembly code
w is the input number a is the value from line 5 b is the value from line 6 c is the value from line 16 This function is a high level version of the assembly code
fn check_digit(w: i64, a: i64, b: i64, c: i64, previous_z: i64) -> i64 {
    if previous_z % 26 + b != w { // x = 1
        26 * previous_z / a + w + c
    }
    else { // x = 0
        previous_z / a
    }
}
fn check_digit ( w : i64 , a : i64 , b : i64 , c : i64 , previous_z : i64 ) -> i64 { if previous_z % 26 + b != w { // x = 1 26 * previous_z / a + w + c } else { // x = 0 previous_z / a } }
w is the input number
a is the value from line 5
b is the value from line 6
c is the value from line 16
w is the input number a is the value from line 5 b is the value from line 6 c is the value from line 16
w
i64
a
i64
b
i64
c
i64
previous_z
i64
w
i64
a
i64
b
i64
c
i64
previous_z
i64