audk/MdePkg/Include/Library
Michael Kinney 2b27b55727 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>
2016-10-27 21:57:52 -07:00
..
BaseLib.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
BaseMemoryLib.h MdePkg BaseMemoryLib: Add C implementation of API IsZeroBuffer() 2016-08-22 18:54:30 +08:00
CacheMaintenanceLib.h
CpuLib.h
DebugLib.h MdePkg/DebugLib.h: add ASSERT_RETURN_ERROR() 2016-10-25 10:46:07 +02:00
DebugPrintErrorLevelLib.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
DevicePathLib.h
DxeCoreEntryPoint.h
DxeServicesLib.h MdePkg: Add a new DxeServicesLib GetFileDevicePathFromAnyFv () function 2015-10-23 05:53:08 +00:00
DxeServicesTableLib.h
ExtendedSalLib.h
ExtractGuidedSectionLib.h
FileHandleLib.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
HobLib.h
HstiLib.h
IoLib.h
MemoryAllocationLib.h
OrderedCollectionLib.h
PalLib.h
PcdLib.h MdePkg: Follow PI1.4a to fix artificial limitation of SkuId range 2016-05-23 10:48:53 +08:00
PciCf8Lib.h
PciExpressLib.h
PciLib.h
PciSegmentLib.h MdePkg/PciSegmentLib: Optimize PCI_SEGMENT_LIB_ADDRESS() 2016-10-27 21:57:52 -07:00
PeCoffExtraActionLib.h
PeCoffGetEntryPointLib.h
PeCoffLib.h MdePkg: Fix some typing errors in the header files 2016-10-07 18:09:09 -07:00
PeiCoreEntryPoint.h
PeiServicesLib.h
PeiServicesTablePointerLib.h
PeimEntryPoint.h
PerformanceLib.h MdePkg: Update PerformanceLib comments not to check Identifier. 2016-04-11 16:20:28 +08:00
PostCodeLib.h
PrintLib.h MdePkg: Add %u and %lu support for PrintLib and DebugLib. 2015-06-08 05:37:31 +00:00
ReportStatusCodeLib.h
ResourcePublicationLib.h
RngLib.h MdePkg: Create GetRandomNumber128 in RngLib 2015-10-09 06:03:17 +00:00
S3BootScriptLib.h
S3IoLib.h
S3PciLib.h
S3SmbusLib.h
S3StallLib.h
SalLib.h
SerialPortLib.h MdePkg SerialPortLib: Upstream Get(Set)Control/SetAttributes interfaces 2015-11-26 08:46:52 +00:00
SmbusLib.h
SmmLib.h
SmmMemLib.h Add SmmMemLib, which can be used by SMM driver or SMM core to check communication buffer. 2015-02-02 14:40:44 +00:00
SmmPeriodicSmiLib.h MdePkg: Fix typos in comments 2016-10-21 16:40:51 +08:00
SmmServicesTableLib.h
SynchronizationLib.h MdePkg/BaseSynchronizationLib: Add InterlockedCompareExchange16 2015-02-28 20:31:54 +00:00
TimerLib.h
UefiApplicationEntryPoint.h
UefiBootServicesTableLib.h
UefiDecompressLib.h
UefiDriverEntryPoint.h
UefiLib.h MdePkg/UefiLib: introduce EfiEventGroupSignal 2016-03-23 12:05:39 +01:00
UefiRuntimeLib.h
UefiRuntimeServicesTableLib.h
UefiScsiLib.h MdePkg UefiScsiLib: Add non-blocking support for SCSI Read/Write command 2015-12-11 01:57:41 +00:00
UefiUsbLib.h