TianoCore EDK2 master
Loading...
Searching...
No Matches
SetMem32Wrapper.c
Go to the documentation of this file.
1
19#include "MemLibInternals.h"
20
40VOID *
41EFIAPI
43 OUT VOID *Buffer,
44 IN UINTN Length,
45 IN UINT32 Value
46 )
47{
48 if (Length == 0) {
49 return Buffer;
50 }
51
52 ASSERT (Buffer != NULL);
53 ASSERT ((Length - 1) <= (MAX_ADDRESS - (UINTN)Buffer));
54 ASSERT ((((UINTN)Buffer) & (sizeof (Value) - 1)) == 0);
55 ASSERT ((Length & (sizeof (Value) - 1)) == 0);
56
57 return InternalMemSetMem32 (Buffer, Length / sizeof (Value), Value);
58}
UINT64 UINTN
#define MAX_ADDRESS
VOID *EFIAPI InternalMemSetMem32(OUT VOID *Buffer, IN UINTN Length, IN UINT32 Value)
Definition: MemLibGeneric.c:53
VOID *EFIAPI SetMem32(OUT VOID *Buffer, IN UINTN Length, IN UINT32 Value)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284