miri::shims::x86

Function apply_random_float_error

Source
fn apply_random_float_error<F: Float>(
    this: &mut MiriInterpCx<'_>,
    val: F,
    err_scale: i32,
) -> F
Expand description

Disturbes a floating-point result by a relative error on the order of (-2^scale, 2^scale).