Thread (2 messages) 2 messages, 2 authors, 2024-12-13

Re: [PATCH] powerpc/32: Replace mulhdu() by mul_u64_u64_shr()

From: Madhavan Srinivasan <maddy@linux.ibm.com>
Date: 2024-12-13 03:20:58
Also in: lkml

On Sat, 07 Dec 2024 11:09:27 +0100, Christophe Leroy wrote:
Using mul_u64_u64_shr() provides similar calculation as mulhdu()
assembly function, but enables inlining by the compiler.

The home-made assembly function had special handling for when one of
the arguments is not a fully populated u64 but time functions use it
to multiply timebase by a calculated scale which is constructed to
have most significant bit set.

[...]
Applied to powerpc/next.

[1/1] powerpc/32: Replace mulhdu() by mul_u64_u64_shr()
      https://git.kernel.org/powerpc/c/2a17a5bebc9aa7f59e99676350866adc41577c03

Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help