sparc/vdso: Add helper function for 64-bit right shift on 32-bit target
authorKoakuma <koachan@protonmail.com>
Thu, 8 Aug 2024 02:05:00 +0000 (09:05 +0700)
committerAndreas Larsson <andreas@gaisler.com>
Mon, 18 Nov 2024 08:59:20 +0000 (09:59 +0100)
commitb6370b338e71cf24c61e33880b8f1a0dd5ad0a44
tree0670959dbf6f7f4c287e3d64f3d4c7f616d6ac69
parent8467d8b282b54d87121f70ce78061af004471d0c
sparc/vdso: Add helper function for 64-bit right shift on 32-bit target

Add helper function for 64-bit right shift on 32-bit target so that
clang does not emit a runtime library call.

Signed-off-by: Koakuma <koachan@protonmail.com>
Reviewed-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240808-sparc-shr64-v2-1-fd18f1b2cea9@protonmail.com
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
arch/sparc/vdso/vclock_gettime.c