SmartAudio/lichee/linux-4.9/drivers/soc/sunxi/pm/standby/super/common.c

50 lines
1.3 KiB
C
Executable File

/*
*********************************************************************************************************
* LINUX-KERNEL
* AllWinner Linux Platform Develop Kits
* Kernel Module
*
* (c) Copyright 2006-2011, kevin.z China
* All Rights Reserved
*
* File : common.c
* By : kevin.z
* Version : v1.0
* Date : 2011-5-30 19:38
* Descript: common lib for mem
* Update : date auther ver notes
*********************************************************************************************************
*/
#include "super_i.h"
/*
*********************************************************************************************************
* mem_memcpy
*
*Description: memory copy function for mem.
*
*Arguments :
*
*Return :
*
*Notes :
*
*********************************************************************************************************
*/
void mem_memcpy(void *dest, void *src, int n)
{
__u32 *tmp_src = (__u32 *)src;
__u32 *tmp_dst = (__u32 *)dest;
n = (n+3)>>2;
for( ; n > 0; n--){
*tmp_dst ++ = *tmp_src ++;
}
return;
}