PREV INDEX NEXT

Author: Stan Eisenstat
Subject: Re: [Cs323] ones complement check-sum
Date: Friday, 09 Oct 2020, 18:07:22


    > Message Posted By: Unknown
    >
    > Why does check-sum actually use ones' complement? (as opposed to two's
    > complement)

The check-sum is based on ones' complement.  However,
you can compute the sum in two's complement and then
perform the end-around carry to get the correct sum.
This works as long as the two's complement sum does
not overflow.

--Stan-
PREV INDEX NEXT