aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/string.h
Commit message (Collapse)AuthorAgeFilesLines
* x86: Replace our own specialised versions of memset and memcpy withKeir Fraser2010-05-111-235/+3
| | | | | | | | | | | direct use of gcc's built-in versions. This dramatically simplifies our code while also avoiding compile warnings with certain intermediate versions of gcc. This patch is based on an initial version by Jan Beulich. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Optimize memcpy for x86 arch. If source buffers does not start at a 64Keir Fraser2009-10-071-1/+17
| | | | | | | | bit boundary, copy a few bytes at the beginnig up to next 64-bit boundary and then does an aligned copy for the remaining data. This can reduce the copy cost by up to 50%. Signed-off-by: Jose Renato Santos <jsantos@hpl.hp.com>
* Revert 16450:5e8e82e80. Instead remove all arch-specific handling ofKeir Fraser2007-11-241-4/+0
| | | | | memcmp() and hence always use common/lib.c version. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Fix non-optimized compilation of Xen's memcmpKeir Fraser2007-11-241-1/+2
| | | | | | | | | Even when using __builtin_memcmp, gcc may emit external references to memcmp (when not optimizing for instance), so this #define does not always provide a completely suitable memcmp(). Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Whitespace clean-ups. shand@kneesaa.uk.xensource.com2006-08-161-1/+1
| | | | | Signed-off-by: Steven Hand <steven@xensource.com>
* Remove bogus inline asm of unused function memchr().kaf24@firebug.cl.cam.ac.uk2006-05-261-16/+0
| | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove broken inline-asm string functions from Xen/x86. Thekaf24@firebug.cl.cam.ac.uk2006-05-241-146/+0
| | | | | | generic implementations in string.c are quite sufficient. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1691.1.3 (42a6aecafCIqSXqRF1ueb8i0jgar3w)kaf24@firebug.cl.cam.ac.uk2005-06-081-0/+2
| | | | | | Fix 'no value returned in non-void function' warnings on x86/64 gcc. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1684 (42a468f4PvUu-iWAyhHxfE-JnhHVYw)kaf24@firebug.cl.cam.ac.uk2005-06-061-50/+0
| | | | | | | | Remove strrchr/strnlen/memscan from x86-specific string.h. They are not used so not worth optimising (strnlen is used only in vsprintf which is not performance critical). Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1683 (42a4622ekYvso9kv8cisS5m2QiUqiQ)kaf24@firebug.cl.cam.ac.uk2005-06-061-3/+443
| | | | | | Merge x86/32 and x86/64 string functions. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1026.3.1 (40e1966bdTS8WBGJY9WhLRE3t6GBdQ)kaf24@scramble.cl.cam.ac.uk2004-06-291-484/+4
| | | | | More cleanups for x86-64.
* bitkeeper revision 1.1020 (40debbf6f8HvBW3MU_9c6ljHeGaKeQ)kaf24@scramble.cl.cam.ac.uk2004-06-271-16/+0
| | | | | cleanups.
* bitkeeper revision 1.955.1.4 (40ca25caD-WBu24eVfed1yswCl7JeQ)kaf24@scramble.cl.cam.ac.uk2004-06-111-0/+1
| | | | | | | | | | | | | | | | | | Many files: More x86_64 stuff. pda.h: Rename: xen/include/asm-x86/x86_64/pda.h -> xen/include/asm-x86/pda.h .del-config.h~ab742eeb14ad808f: Delete: xen/include/asm-x86/x86_64/config.h arch-x86_32.h: Rename: xen/include/hypervisor-ifs/arch_x86_32.h -> xen/include/hypervisor-ifs/arch-x86_32.h arch-x86_64.h: Rename: xen/include/hypervisor-ifs/arch_x86_64.h -> xen/include/hypervisor-ifs/arch-x86_64.h arch_x86_32.h: Rename: xen/include/hypervisor-ifs/arch-x86/hypervisor-if.h -> xen/include/hypervisor-ifs/arch_x86_32.h arch_x86_64.h: Rename: xen/include/hypervisor-ifs/arch-x86_64/hypervisor-if.h -> xen/include/hypervisor-ifs/arch_x86_64.h
* bitkeeper revision 1.952 (40c8935a3XSRdQfnx5RoO7XgaggvOQ)kaf24@scramble.cl.cam.ac.uk2004-06-101-0/+500
Towards x86_64 support. Merged a bunch of the existing x86_64 stuff back into a generic 'x86' architecture. Aim is to share as much as possible between 32- and 64-bit worlds.