audk/MdePkg/Library/BaseMemoryLib
Hao Wu 9088c61e2d MdePkg/MemoryLib: Refine InternalMemSetMem16|32|64 functions logic
This commit refines the logic for InternalMemSetMem16|32|64 functions. It
avoids using the decrement operator '--' for array index to prevent
possible mis-reports by static code checkers.

Please note that those modified functions are only consumed within
MemoryLib by APIs SetMem16|32|64, and those APIs will handle the case when
the input number of bytes to set is 0. Hence, the behavior of APIs
SetMem16|32|64 is not changed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
2016-12-22 16:17:16 +08:00
..
BaseMemoryLib.inf MdePkg/BaseMemoryLib: widen aligned accesses to 32 or 64 bits 2016-09-13 16:28:15 +01:00
BaseMemoryLib.uni
CompareMemWrapper.c
CopyMem.c MdePkg/BaseMemoryLib: Fix VS2015 build error 2016-11-17 09:43:23 -08:00
CopyMemWrapper.c
IsZeroBufferWrapper.c MdePkg BaseMemoryLib: Add C implementation of API IsZeroBuffer() 2016-08-22 18:54:30 +08:00
MemLibGeneric.c MdePkg/MemoryLib: Refine InternalMemSetMem16|32|64 functions logic 2016-12-22 16:17:16 +08:00
MemLibGuid.c
MemLibInternals.h MdePkg BaseMemoryLib: Add C implementation of API IsZeroBuffer() 2016-08-22 18:54:30 +08:00
ScanMem8Wrapper.c
ScanMem16Wrapper.c
ScanMem32Wrapper.c
ScanMem64Wrapper.c
SetMem.c MdePkg/BaseMemoryLib: widen aligned accesses to 32 or 64 bits 2016-09-13 16:28:15 +01:00
SetMem16Wrapper.c
SetMem32Wrapper.c
SetMem64Wrapper.c
SetMemWrapper.c
ZeroMemWrapper.c MdePkg/BaseMemoryLib*: check for zero length in ZeroMem () 2016-11-04 09:53:01 +00:00