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

MdePkg/Library/BaseMemoryLibSse2/SetMemWrapper.c

Go to the documentation of this file.
00001 
00026 #include "MemLibInternals.h"
00027 
00042 VOID *
00043 EFIAPI
00044 SetMem (
00045   OUT VOID  *Buffer,
00046   IN UINTN  Length,
00047   IN UINT8  Value
00048   )
00049 {
00050   if (Length == 0) {
00051     return Buffer;
00052   }
00053 
00054   ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
00055 
00056   return InternalMemSetMem (Buffer, Length, Value);
00057 }
00058 
00078 VOID *
00079 EFIAPI
00080 SetMemN (
00081   OUT VOID  *Buffer,
00082   IN UINTN  Length,
00083   IN UINTN  Value
00084   )
00085 {
00086   if (sizeof (UINTN) == sizeof (UINT64)) {
00087     return SetMem64 (Buffer, Length, (UINT64)Value);
00088   } else {
00089     return SetMem32 (Buffer, Length, (UINT32)Value);
00090   }
00091 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines