1/*++
2
3Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4This program and the accompanying materials
5are licensed and made available under the terms and conditions of the BSD License
6which accompanies this distribution.  The full text of the license may be found at
7http://opensource.org/licenses/bsd-license.php
8
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12Module Name:
13  memcpy.c
14
15Abstract:
16
17  The Microsoft compiler inlines memcpy and we can not stop it.
18  These routines allow the code to link!
19
20  There is no *.h definition of these modules as they are well known by the
21  compiler. See Microsoft documentation for more details!
22
23  volatile is used to prevent the compiler from trying to implement these
24  C functions as inline functions.
25
26--*/
27
28#include "Tiano.h"
29
30VOID *
31memcpy (
32  OUT VOID        *Dest,
33  IN  const VOID  *Src,
34  IN  UINTN       Count
35  )
36{
37  volatile UINT8  *Ptr;
38  const    UINT8  *Source;
39
40  for (Ptr = Dest, Source = Src; Count > 0; Count--, Source++, Ptr++) {
41    *Ptr = *Source;
42  }
43
44  return Dest;
45}
46
47