What is Arithmetic shift?

A right shift of a signed integer that copies the sign bit into the vacated high bits. Shifting a negative number right by one divides by 2, rounding toward negative infinity. Filling with zeros is a logical shift.

Field: Computer Arithmetic

Questions that mention Arithmetic shift (1)

  1. In C, what are the results of −7 / 2 and −7 >> 1 (with an arithmetic shift) for int?

Related terms

bfloat16 Booth's algorithm Carry-lookahead adder Carry-save adder Catastrophic cancellation Exponent field Fixed point Floating-point absorption FP8 Fused multiply-add

Back to the glossary