From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.5227.1633323824773038388 for ; Sun, 03 Oct 2021 22:03:45 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: ianx.kuo@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10126"; a="311484580" X-IronPort-AV: E=Sophos;i="5.85,344,1624345200"; d="scan'208";a="311484580" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2021 22:03:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,344,1624345200"; d="scan'208";a="710938485" Received: from ikuox-desk1.gar.corp.intel.com ([10.227.107.18]) by fmsmga006.fm.intel.com with ESMTP; 03 Oct 2021 22:03:21 -0700 From: "IanX Kuo" To: devel@edk2.groups.io Cc: amy.chan@intel.com, ray.ni@intel.com, IanX Kuo Subject: [PATCH v5 0/4] Add function QuickSort into MdePkg/BaseLib Date: Mon, 4 Oct 2021 13:03:14 +0800 Message-Id: <20211004050318.1816-1-ianx.kuo@intel.com> X-Mailer: git-send-email 2.30.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: IanX Kuo REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3675 1. MdePkg/BaseLib: Add QuickSort function 2. MdeModulePkg/SortLib: Use QuickSort instead of QuickSortWorker 3. CryptLib/CryptLib: Remove duplicate QuickSortWorker 4. CpuCacheInfoLib: Remove MdeModulePkg dependency IanX Kuo (4): MdePkg/BaseLib: Add QuickSort function on BaseLib 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 | 117 +---------------- .../Library/UefiSortLib/UefiSortLib.c | 118 +----------------- MdePkg/Include/Library/BaseLib.h | 49 ++++++++ MdePkg/Library/BaseLib/BaseLib.inf | 1 + MdePkg/Library/BaseLib/QuickSort.c | 117 +++++++++++++++++ .../Library/BaseLib/UnitTestHostBaseLib.inf | 3 +- .../Library/CpuCacheInfoLib/CpuCacheInfoLib.c | 5 +- .../CpuCacheInfoLib/DxeCpuCacheInfoLib.inf | 2 - .../CpuCacheInfoLib/InternalCpuCacheInfoLib.h | 2 - .../CpuCacheInfoLib/PeiCpuCacheInfoLib.inf | 2 - 11 files changed, 185 insertions(+), 323 deletions(-) create mode 100644 MdePkg/Library/BaseLib/QuickSort.c -- 2.30.0.windows.1