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).
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 on the order of (-2^scale, 2^scale).