From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.31753.1634530898587126374 for ; Sun, 17 Oct 2021 21:21:39 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.100, mailfrom: ianx.kuo@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10140"; a="291637906" X-IronPort-AV: E=Sophos;i="5.85,381,1624345200"; d="scan'208";a="291637906" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2021 21:21:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,381,1624345200"; d="scan'208";a="443251283" Received: from ikuox-desk1.gar.corp.intel.com ([10.227.107.18]) by orsmga006.jf.intel.com with ESMTP; 17 Oct 2021 21:21:29 -0700 From: "IanX Kuo" To: devel@edk2.groups.io Cc: amy.chan@intel.com, ray.ni@intel.com, IanX Kuo Subject: [PATCH v6 0/3] Add function QuickSort into MdePkg/BaseLib Date: Mon, 18 Oct 2021 12:21:24 +0800 Message-Id: <20211018042127.1306-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 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