[GIT PULL] x86/asm for 6.1

From: Borislav Petkov
Date: Tue Oct 04 2022 - 10:06:20 EST


Hi Linus,

please pull a couple of x86/asm improvements for 6.1.

Thx.

---

The following changes since commit 521a547ced6477c54b4b0cc206000406c221b4d6:

Linux 6.0-rc6 (2022-09-18 13:44:14 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_asm_for_v6.1_rc1

for you to fetch changes up to fdb6649ab7c142e497539a471e573c2593b9c923:

x86/asm/bitops: Use __builtin_ctzl() to evaluate constant expressions (2022-09-20 15:35:37 +0200)

----------------------------------------------------------------
- "Slap" the __builtin_ffs/ctzl() compiler builtins in front of the
kernel's optimized ffs()/ffz() helpers in order to make use of the
compiler's constant folding optmization passes.

----------------------------------------------------------------
Vincent Mailhol (2):
x86/asm/bitops: Use __builtin_ffs() to evaluate constant expressions
x86/asm/bitops: Use __builtin_ctzl() to evaluate constant expressions

arch/x86/include/asm/bitops.h | 54 ++++++++++++++++++++++++++-----------------
1 file changed, 33 insertions(+), 21 deletions(-)


--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman
(HRB 36809, AG Nürnberg)