Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-11] src/sys/arch



Module Name:    src
Committed By:   martin
Date:           Fri Dec  5 13:03:52 UTC 2025

Modified Files:
        src/sys/arch/mips/include [netbsd-11]: bswap.h
        src/sys/arch/powerpc/include [netbsd-11]: bswap.h

Log Message:
Pull up following revision(s) (requested by nia in ticket #113):

        sys/arch/mips/include/bswap.h: revision 1.6
        sys/arch/powerpc/include/bswap.h: revision 1.7

mips: Use the inline macro version of bswap.

mips suffers from the same problem as sparc where bswap is slow
and using the GCC builtin does not make it better.

This change improves the speed of disk encryption by around 3 MiB/s
on an EdgeRouter 4.
PR port-sparc64/59789

powerpc: Use GCC builtins for bswap.

This doubled disk encryption performance on an (emulated) G4. Further
improvements are possible if the GCC 2 version of the endian functions
is used, so we might want to consider doing that on more NetBSD ports.

PR port-sparc64/59789 bswap is slow


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.28.1 src/sys/arch/mips/include/bswap.h
cvs rdiff -u -r1.6 -r1.6.202.1 src/sys/arch/powerpc/include/bswap.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index