From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.4014.1633313595923314152 for ; Sun, 03 Oct 2021 19:13:16 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: ianx.kuo@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10126"; a="222715379" X-IronPort-AV: E=Sophos;i="5.85,344,1624345200"; d="scan'208";a="222715379" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Oct 2021 19:13:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,344,1624345200"; d="scan'208";a="566760992" Received: from ikuox-desk1.gar.corp.intel.com ([10.227.107.18]) by fmsmga002.fm.intel.com with ESMTP; 03 Oct 2021 19:13:09 -0700 From: "IanX Kuo" To: devel@edk2.groups.io Cc: amy.chan@intel.com, IanX Kuo Subject: [PATCH v1 0/4] Add function QuickSort into MdePkg/BaseLib Date: Mon, 4 Oct 2021 10:13:04 +0800 Message-Id: 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