[edk2-devel] [PATCH v6 0/3] Add function QuickSort into MdePkg/BaseLib

IanX Kuo posted 3 patches 2 years, 6 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/20211018042127.1306-1-ianx.kuo@intel.com
There is a newer version of this series
.../Library/BaseCryptLib/SysCall/CrtWrapper.c |  92 +-------------
.../Library/BaseSortLib/BaseSortLib.c         | 115 +----------------
.../Library/UefiSortLib/UefiSortLib.c         | 116 +-----------------
.../Library/CpuCacheInfoLib/CpuCacheInfoLib.c |   3 +-
.../CpuCacheInfoLib/DxeCpuCacheInfoLib.inf    |   2 -
.../CpuCacheInfoLib/InternalCpuCacheInfoLib.h |   1 -
.../CpuCacheInfoLib/PeiCpuCacheInfoLib.inf    |   2 -
7 files changed, 12 insertions(+), 319 deletions(-)
[edk2-devel] [PATCH v6 0/3] Add function QuickSort into MdePkg/BaseLib
Posted by IanX Kuo 2 years, 6 months ago
From: IanX Kuo <ianx.kuo@intel.com>

1. MdeModulePkg/SortLib: Use QuickSort instead of QuickSortWorker
1-1: Drop cast (V2)

2. CryptLib/CryptLib: Remove duplicate QuickSortWorker
2-1: Drop cast (V3)
2-2: Add cast (BASE_SORT_COMPARE) to prevent incompatible types (V6)
'function': incompatible types - from 'int (__cdecl *)(const void *,const void *)' to 'BASE_SORT_COMPARE'

3. CpuCacheInfoLib: Remove MdeModulePkg dependency
3-1: Drop cast (V2)
3-2: Add runtime check (V2)
3-3: Drop assert check (V3)
3-4: Remove allocate pool (V4)
3-5: Rename QuickSortBuffer to SortBuffer (V5)
3-6: Add cast (VOID*) cast to prevent incompatible types (V6)

IanX Kuo (3):
  MdeModulePkg/SortLib: Add QuickSort function on BaseLib
  CryptoPkg/CryptLib: Add QuickSort function on BaseLib
  UefiCpuPkg/CpuCacheInfoLib: Add QuickSort function on BaseLib

 .../Library/BaseCryptLib/SysCall/CrtWrapper.c |  92 +-------------
 .../Library/BaseSortLib/BaseSortLib.c         | 115 +----------------
 .../Library/UefiSortLib/UefiSortLib.c         | 116 +-----------------
 .../Library/CpuCacheInfoLib/CpuCacheInfoLib.c |   3 +-
 .../CpuCacheInfoLib/DxeCpuCacheInfoLib.inf    |   2 -
 .../CpuCacheInfoLib/InternalCpuCacheInfoLib.h |   1 -
 .../CpuCacheInfoLib/PeiCpuCacheInfoLib.inf    |   2 -
 7 files changed, 12 insertions(+), 319 deletions(-)

-- 
2.30.0.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#82203): https://edk2.groups.io/g/devel/message/82203
Mute This Topic: https://groups.io/mt/86406842/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-