summaryrefslogtreecommitdiff
path: root/.rustfmt.toml
diff options
context:
space:
mode:
authorCharlie Jenkins <charlie@rivosinc.com>2024-01-09 02:57:02 +0300
committerPalmer Dabbelt <palmer@rivosinc.com>2024-01-18 04:52:29 +0300
commit1e7196fa5b0312a6a3e49e7c1300e145afcba96b (patch)
tree999227adddf6063d7dbdf1661cb2a734780f128d /.rustfmt.toml
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadlinux-1e7196fa5b0312a6a3e49e7c1300e145afcba96b.tar.xz
asm-generic: Improve csum_fold
This csum_fold implementation introduced into arch/arc by Vineet Gupta is better than the default implementation on at least arc, x86, and riscv. Using GCC trunk and compiling non-inlined version, this implementation has 41.6667%, 25% fewer instructions on riscv64, x86-64 respectively with -O3 optimization. Most implmentations override this default in asm, but this should be more performant than all of those other implementations except for arm which has barrel shifting and sparc32 which has a carry flag. Signed-off-by: Charlie Jenkins <charlie@rivosinc.com> Reviewed-by: David Laight <david.laight@aculab.com> Link: https://lore.kernel.org/r/20240108-optimize_checksum-v15-1-1c50de5f2167@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions