EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

ArmPkg/Library/BaseMemoryLibStm/SetMem.c

Go to the documentation of this file.
00001 
00021 #include "MemLibInternals.h"
00022 
00033 VOID *
00034 EFIAPI
00035 InternalMemSetMem (
00036   OUT     VOID                      *Buffer,
00037   IN      UINTN                     Length,
00038   IN      UINT8                     Value
00039   )
00040 {
00041   //
00042   // Declare the local variables that actually move the data elements as
00043   // volatile to prevent the optimizer from replacing this function with
00044   // the intrinsic memset()
00045   //
00046   volatile UINT8                    *Pointer;
00047 
00048   Pointer = (UINT8*)Buffer;
00049   while (Length-- > 0) {
00050     *(Pointer++) = Value;
00051   }
00052   return Buffer;
00053 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines