From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web08.5058.1633322793354795932 for ; Sun, 03 Oct 2021 21:46:33 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: ianx.kuo@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10126"; a="225602844" X-IronPort-AV: E=Sophos;i="5.85,344,1624345200"; d="scan'208";a="225602844" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2021 21:46:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,344,1624345200"; d="scan'208";a="621557250" Received: from ikuox-desk1.gar.corp.intel.com ([10.227.107.18]) by fmsmga001.fm.intel.com with ESMTP; 03 Oct 2021 21:46:30 -0700 From: "IanX Kuo" To: devel@edk2.groups.io Cc: amy.chan@intel.com, ray.ni@intel.com, IanX Kuo Subject: [PATCH v4 0/4] Add function QuickSort into MdePkg/BaseLib Date: Mon, 4 Oct 2021 12:46:23 +0800 Message-Id: <20211004044627.1810-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