git: kernel and world - Replace bcmp/bcopy/bzero/memcmp/memcpy/memmove/memset

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Feb 23 12:08:46 PST 2020


commit 5b3646a93f49d0672a38799a970e6df9453fe295
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Feb 17 00:09:37 2020 -0800

    kernel and world - Replace bcmp/bcopy/bzero/memcmp/memcpy/memmove/memset
    
    * Replace bcmp/bcopy/bzero/memcmp/memcpy/memmove/memset with mjg's
      code, with some minor adjustments.
    
    * mjg's code has been given its own header file,
      <machine/asm_mjgmacros.h>
    
    * Also replaces copyin and copyout.
    
    * Around a 1.7% improvement in bulk-build performance.

Summary of changes:
 lib/libc/x86_64/string/bcmp.S          |   2 +-
 lib/libc/x86_64/string/bcopy.S         |  58 +---
 lib/libc/x86_64/string/bzero.S         |  22 +-
 lib/libc/x86_64/string/memcmp.S        |  35 +-
 lib/libc/x86_64/string/memcpy.S        |   2 +-
 lib/libc/x86_64/string/memmove.S       |   2 +-
 lib/libc/x86_64/string/memset.S        |  37 +--
 sys/cpu/x86_64/include/asm.h           |   4 +
 sys/cpu/x86_64/include/asm_mjgmacros.h | 574 +++++++++++++++++++++++++++++++++
 sys/platform/pc64/x86_64/memcmp.s      |  75 +++--
 sys/platform/pc64/x86_64/support.s     | 174 ++--------
 11 files changed, 689 insertions(+), 296 deletions(-)
 create mode 100644 sys/cpu/x86_64/include/asm_mjgmacros.h

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5b3646a93f49d0672a38799a970e6df9453fe295


-- 
DragonFly BSD source repository


More information about the Commits mailing list