]> git.proxmox.com Git - mirror_edk2.git/commit - MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.S
MdePkg/BaseMemoryLibOptDxe ARM: fix arithmetic bugs in CompareMem()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 13 Sep 2016 17:22:33 +0000 (18:22 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 21 Sep 2016 07:42:48 +0000 (08:42 +0100)
commit60fe5e8a9c8deafcc302c715a91947d75d38e544
treebf8b3e3f105ec60329bec621041ef8ab05f820dc
parent93638568c1c6bd6bace2cd27666796b7c87fc45c
MdePkg/BaseMemoryLibOptDxe ARM: fix arithmetic bugs in CompareMem()

Fix two bugs:
- Erroneous shift of 2 in a bytes to bits conversion.
- Use reverse subtract rather than negate for value that is subsequently
  used as operand #2 in a shift operation.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseMemoryLibOptDxe/Arm/CompareMem.S