diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-09-02 08:26:23 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-09-13 16:28:15 +0100 |
commit | 01f688be90f59cd1ea92195bd238e8d97295fbf1 (patch) | |
tree | cb1975178c707423e817a6b1005b4f0a6ff79ba9 /MdePkg/Library/BaseMemoryLibOptDxe | |
parent | 94a3845be698ddeed9d126363c755bd3bb13dd17 (diff) | |
download | edk2-platforms-01f688be90f59cd1ea92195bd238e8d97295fbf1.tar.xz |
MdePkg/BaseMemoryLib: widen aligned accesses to 32 or 64 bits
Since the default BaseMemoryLib should be callable from any context,
including ones where unaligned accesses are not allowed, it implements
InternalCopyMem() and InternalSetMem() using byte accesses only.
However, especially in a context where the MMU is off, such narrow
accesses may be disproportionately costly, and so if the size and
alignment of the access allow it, use 32-bit or even 64-bit loads and
stores (the latter may be beneficial even on a 32-bit architectures like
ARM, which has load pair/store pair instructions)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg/Library/BaseMemoryLibOptDxe')
0 files changed, 0 insertions, 0 deletions