Function miri::shims::x86::int_abs

source ·
fn int_abs<'tcx>(
    this: &mut MiriInterpCx<'_, 'tcx>,
    op: &OpTy<'tcx, Provenance>,
    dest: &MPlaceTy<'tcx, Provenance>
) -> InterpResult<'tcx, ()>
Expand description

Calculates absolute value of integers in op and stores the result in dest.

In case of overflow (when the operand is the minimum value), the operation will wrap around.