]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MtrrLib: Remove the loop of calculating Fixed-MTRR Mask
authorJeff Fan <jeff.fan@intel.com>
Thu, 21 Apr 2016 02:28:17 +0000 (10:28 +0800)
committerJeff Fan <jeff.fan@intel.com>
Fri, 29 Apr 2016 02:07:07 +0000 (10:07 +0800)
commit07e889209034ba94bfac9e765b8a50ef344daef2
tree9de5e2542263f52df58a06d53efbacfb320f70d5
parentaaa1e579a5109a868863c8a3c7a51580f83b4c38
UefiCpuPkg/MtrrLib: Remove the loop of calculating Fixed-MTRR Mask

Introduce the 32bit mask seeds to calculate Fixed-MTRR or&and mask values. It
could avoid the loop operation and 64bit shift operations.

Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
UefiCpuPkg/Library/MtrrLib/MtrrLib.c