/*
*linux/arch/alpha/lib/memcpy.c
*
*Copyright(C)1995LinusTorvalds
*/
/*
*Thisisareasonablyoptimizedmemcpy()routine.
*/
/*
*NotethattheCcodeiswrittentobeoptimizedintogoodassembly.However,
*atthispointgccisunabletosanelycompile"if(n>=0)",resultingina
*explicitcompareagainst0(insteadofjustusingtheproper"bltreg,xx"or
*"bgereg,xx").Ihopealpha-gccwillbefixedtonoticethiseventually..
*/
#include<linux/types.h>
/*
*Thisshouldbedoneinonegowithldq_u*2/mask/stq_u.Doit
*withamacrosothatwecanfixituplater..
*/
#defineALIGN_DEST_TO8_UP(d,s,n)\
while(d&7){\
if(n<=0)return;\
n--;\
*(char*)d=*(char*)s;\
d++;s++;\