From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Schwab Date: Mon, 27 Nov 2023 13:09:14 +0100 Subject: [QUESTION] Usage of negative number notations on unsigned numbers. In-Reply-To: (Karthik B. K.'s message of "Mon, 27 Nov 2023 11:59:56 +0000") References: <878r6n76im.fsf@igel.home> Message-ID: <87leajmm8l.fsf@igel.home> List-Id: To: opensbi@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Nov 27 2023, Karthik B K wrote: > This is with the assumption that the encoding for -1 == 2^32-1. No, the representation has nothing to do with that. It's a value conversion. -- Andreas Schwab, schwab at linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."