miri::math

Function apply_random_float_error

Source
pub(crate) fn apply_random_float_error<F: Float>(
    ecx: &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).