[git commit] byteswap: unify common definitions

Mike Frysinger vapier at gentoo.org
Mon Jul 20 20:38:30 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=6ca56dd4d711c731d010c484c20384097615f6cd
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Patch is too large, so refusing to show it


The majority of the byteswap functions are the same across all arches, so
setup a common header to provide definitions if they don't exist.  This
allows arches to override only the ones they actually want to implement
with inline assembly.

Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 libc/sysdeps/linux/bfin/bits/byteswap.h            |   92 +++------------
 .../common/bits/{byteswap.h => byteswap-common.h}  |   43 +++++--
 libc/sysdeps/linux/common/bits/byteswap.h          |   88 +-------------
 libc/sysdeps/linux/cris/bits/byteswap.h            |   79 ++-----------
 libc/sysdeps/linux/h8300/bits/byteswap.h           |   61 +++-------
 libc/sysdeps/linux/i386/bits/byteswap.h            |  121 ++++---------------
 libc/sysdeps/linux/ia64/bits/byteswap.h            |  100 ++++------------
 libc/sysdeps/linux/m68k/bits/byteswap.h            |   50 ++------
 libc/sysdeps/linux/v850/bits/byteswap.h            |   48 ++------
 libc/sysdeps/linux/x86_64/bits/byteswap.h          |  127 +++++---------------
 10 files changed, 166 insertions(+), 643 deletions(-)
 copy libc/sysdeps/linux/common/bits/{byteswap.h => byteswap-common.h} (69%)


More information about the uClibc-cvs mailing list