From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.11085.1649772474656677944 for ; Tue, 12 Apr 2022 07:07:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=jFxp9Kb7; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649772473; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rnXrRxIZ33EDHdPuLuHVa9DKLc2C+vloknoGvU3Wako=; b=jFxp9Kb7YxKrYI3AzZbpa+TFsu7UppRI7mNCiu9Xuq4pZSleZ2tqDKABuZOkG/LyfqYKON 9N2HdMe5CqCHYXAxAkOszfm4m9n32QF4rJczf7qbIwKvCj6aDdlG89u0/oK8ZVH0caVBCZ TORpanpBXFjJfQWLjk06GNMrTPBpgUc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-414-sKCnynvvNYCmf3GnuE-PDQ-1; Tue, 12 Apr 2022 10:07:48 -0400 X-MC-Unique: sKCnynvvNYCmf3GnuE-PDQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 989A0803524; Tue, 12 Apr 2022 14:07:46 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 595C71454537; Tue, 12 Apr 2022 14:07:46 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 82089180092C; Tue, 12 Apr 2022 16:07:37 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Maurice Ma , Andrew Fish , Pawel Polawski , Benjamin You , Yuwei Chen , Zhiguang Liu , Rebecca Cran , Xiaoyu Lu , Supreeth Venkatesh , Zhichao Gao , Brijesh Singh , Julien Grall , Erdem Aktas , Maciej Rabeda , Liming Gao , Michael D Kinney , kilian_kegel@hotmail.com, Siyuan Fu , Oliver Steffen , Ray Ni , Abner Chang , James Bottomley , Sean Brogan , Alexei Fedorov , Tom Lendacky , Guo Dong , Jiewen Yao , Sami Mujawar , Sebastien Boeuf , Peter Grehan , Min Xu , Anthony Perard , Jordan Justen , Jian J Wang , Gerd Hoffmann , Bob Feng , Bret Barkelew , Nickle Wang , Wei6 Xu , Daniel Schaefer , Jiaxin Wu , Leif Lindholm , Guomin Jiang , Sami Mujawar , Ard Biesheuvel Subject: [PATCH v2 09/10] MdePkg/CompilerIntrinsicsLib: remove duplicate functions from Gcc.c Date: Tue, 12 Apr 2022 16:07:36 +0200 Message-Id: <20220412140737.1738157-10-kraxel@redhat.com> In-Reply-To: <20220412140737.1738157-1-kraxel@redhat.com> References: <20220412140737.1738157-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.7 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true Implementations for those functions already exist, so remove them to avoid duplicate symbols. Signed-off-by: Gerd Hoffmann --- .../Library/CompilerIntrinsicsLib/Ia32/Gcc.c | 47 ------------------- 1 file changed, 47 deletions(-) diff --git a/MdePkg/Library/CompilerIntrinsicsLib/Ia32/Gcc.c b/MdePkg/Library/CompilerIntrinsicsLib/Ia32/Gcc.c index 3c47bef63c4d..7502d5afe65a 100644 --- a/MdePkg/Library/CompilerIntrinsicsLib/Ia32/Gcc.c +++ b/MdePkg/Library/CompilerIntrinsicsLib/Ia32/Gcc.c @@ -20,55 +20,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #include -// Shift Datum left by Count bits. -// =========================================================================== -int -__ashlsi3 ( - int Datum, - int Count - ) -{ - return (int)LShiftU64 ((UINT64)Datum, (UINTN)Count); -} - -long -__ashldi3 ( - long Datum, - int Count - ) -{ - return (long)LShiftU64 ((UINT64)Datum, (UINTN)Count); -} - -long long -__ashlti3 ( - long long Datum, - int Count - ) -{ - return (long long)LShiftU64 ((UINT64)Datum, (UINTN)Count); -} - // Arithmetically shift Datum right by Count bits. // =========================================================================== -int -__ashrsi3 ( - int Datum, - int Count - ) -{ - return (int)ARShiftU64 ((UINT64)Datum, (UINTN)Count); -} - -long -__ashrdi3 ( - long Datum, - int Count - ) -{ - return (long)ARShiftU64 ((UINT64)Datum, (UINTN)Count); -} - long long __ashrti3 ( long long Datum, -- 2.35.1