pub fn stretch(p: u32) -> i32
Convert 12-bit probability to log-odds. Input: p in [1, 4095]. Output: log-odds as scaled integer.