fn q_decode(p: f64, lower_tail: c_int, log_p: c_int) -> f64
Decode p from log_p / lower_tail for quantile functions.