audk/MdePkg/Library/BaseMemoryLibOptDxe/Arm
Ard Biesheuvel 217b3ac093 MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID functions
As reported by Vishal, CompareGuid() is a hotspot, and switching from
BaseMemoryLibStm in ArmPkg/ to BaseMemoryLibOptDxe causes a noticeable
performance regression due to the fact that BaseMemoryLibOptDxe uses
unaligned accessors explicitly to implement CompareGuid() and the related
functions.

Since BaseMemoryLibOptDxe on ARM and AARCH64 can only be used in contexts
where unaligned accesses are allowed, reimplement these functions for ARM
and AARCH64 specifically, using wide accessors that can tolerate any
misalignment.

Reported-by: "Oliyil Kunnil, Vishal" <vishalo@qti.qualcomm.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-09-21 08:43:17 +01:00
..
CompareGuid.S MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID functions 2016-09-21 08:43:17 +01:00
CompareGuid.asm MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID functions 2016-09-21 08:43:17 +01:00
CompareMem.S MdePkg/BaseMemoryLibOptDxe ARM: fix arithmetic bugs in CompareMem() 2016-09-21 08:42:48 +01:00
CompareMem.asm MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
CopyMem.S MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
CopyMem.asm MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
MemLibGuid.c MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: implement accelerated GUID functions 2016-09-21 08:43:17 +01:00
ScanMem.S MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
ScanMem.asm MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
ScanMemGeneric.c MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
SetMem.S MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00
SetMem.asm MdePkg/BaseMemoryLibOptDxe: add accelerated ARM routines 2016-09-13 16:28:15 +01:00