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 in the range (-2^scale, 2^scale).
pub(crate) fn apply_random_float_error<F: Float>(
ecx: &mut MiriInterpCx<'_>,
val: F,
err_scale: i32,
) -> F
Disturbes a floating-point result by a relative error in the range (-2^scale, 2^scale).