public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: David Laight <david.laight.linux@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: "Theodore Tso" <tytso@mit.edu>,
	Guan-Chun Wu <409411716@gms.tku.edu.tw>,
	Andreas Dilger <adilger.kernel@dilger.ca>,
	linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
	visitorckw@gmail.com
Subject: Re: [PATCH] ext4: improve str2hashbuf by processing 4-byte chunks
Date: Fri, 21 Nov 2025 11:59:31 +0000	[thread overview]
Message-ID: <20251121115931.411ab538@pumpkin> (raw)
In-Reply-To: <87a50flko1.fsf@igel.home>

On Fri, 21 Nov 2025 11:55:26 +0100
Andreas Schwab <schwab@linux-m68k.org> wrote:

> On Nov 20 2025, Theodore Tso wrote:
> 
> > Secondly, it's not that a promotion happens before "any" arithmetic.
> > If we add two 8-bit values together, promotion doesn't happen.  
> 
> That is not true.  Integer promotion is applied individually to each
> operand independent of context.

True.

You can think of the promotion happening every time a 'variable' is
read into a cpu register for any operation (including an assignment).

Similarly every write to a variable discards the high bits.

	David

      reply	other threads:[~2025-11-21 11:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-16 13:01 [PATCH] ext4: improve str2hashbuf by processing 4-byte chunks Guan-Chun Wu
2025-11-16 19:35 ` David Laight
2025-11-17 14:20   ` Guan-Chun Wu
2025-11-20 15:58   ` Theodore Tso
2025-11-20 16:58     ` Kuan-Wei Chiu
2025-11-20 18:27       ` David Laight
2025-11-21 10:07     ` Geert Uytterhoeven
2025-11-21 10:55     ` Andreas Schwab
2025-11-21 11:59       ` David Laight [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251121115931.411ab538@pumpkin \
    --to=david.laight.linux@gmail.com \
    --cc=409411716@gms.tku.edu.tw \
    --cc=adilger.kernel@dilger.ca \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=schwab@linux-m68k.org \
    --cc=tytso@mit.edu \
    --cc=visitorckw@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox