summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/HiiDatabaseDxe
diff options
context:
space:
mode:
authorMichael Kinney <michael.d.kinney@intel.com>2016-10-26 14:08:22 -0700
committerMichael Kinney <michael.d.kinney@intel.com>2016-10-27 21:57:52 -0700
commit2b27b557277a52998e2387333cc834e09a887c18 (patch)
tree7f4550a55653f311451fbd6ce352035fae81ece8 /MdeModulePkg/Universal/HiiDatabaseDxe
parent70830df6dc72b4fea5e5e9eef07f0039a8a77afe (diff)
downloadedk2-platforms-2b27b557277a52998e2387333cc834e09a887c18.tar.xz
MdePkg/PciSegmentLib: Optimize PCI_SEGMENT_LIB_ADDRESS()
https://bugzilla.tianocore.org/show_bug.cgi?id=180 The PCI_SEGMENT_LIB_ADDRESS() macro puts the Segment number into bits 32..47 of the logical address that is returned. The portable method to put Segment in this bit range is to use LShitU64(). For 64-bit CPUs, this is optimized well by the compiler. For 32-bit CPUs, a call to LSHiftU64() is included in the generated binaries. However, if the Segment parameter is 0, then no shift is required. Add a check for Segment set to 0 and provide an optimized macro implementation that does not call LShiftU64(). Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe')
0 files changed, 0 insertions, 0 deletions