From patchwork Wed Mar 27 19:40:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 783156 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2375182wrt; Wed, 27 Mar 2024 12:42:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCfNc5wJTKcRzPAXnwp6OKuhY/4Oj/A0MnWFnJHjYh9eNgN1nY+ZNIUMsZu6KgYa0w0RGjB3cKDeCZ5oYy0NJ2 X-Google-Smtp-Source: AGHT+IH7CBSCReOSSRnFy68hsHHVgeXbMbbLpP/dCEoWvo+jAevln9a/UtHF9oRQmwqbB3S0a498 X-Received: by 2002:ae9:e518:0:b0:78a:54d2:e5c3 with SMTP id w24-20020ae9e518000000b0078a54d2e5c3mr584188qkf.59.1711568535771; Wed, 27 Mar 2024 12:42:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711568535; cv=pass; d=google.com; s=arc-20160816; b=tjrzOE9a+rKQGHDw0qdkatFbpB1ApRyE5tNdgV/TRtNomn/JXZwMytbp0XkBB6s5sq e0mcqEdzI2HToBHNbzyEmuzmcL5OcOkFF/O0lYwyzGmT8ZJPNh6961TsLDRSomyRHpQf Dbf6FG98jPIFr9nrqSUrZojO6yBqmP7a9yTyXgujDyp+VKPNraSOQCq9JsSTdIvhiERQ fAYsL6DMM6fra4qZKsRFImpIK6wI3NLtTjWExdD2i0ecIoaGwc2P74/clt0lgyCyn4LB vH0bLvvLy5ffRdjRU28xG03VQEtajcpp8M2nHp4zfjvr+hKOrYmQlsf1M1r9QGvM1Avg SrLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=mgzBHY8eIbS5Bsjmn6NMaIRe85fsSw17SEUeNUUQPqk=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=yIHd/HwIMklQuMFYKBWM6VSK/ClPBGr/JwKL7b5N9tUiSb+uL6NOjYewGSwbCQTRto sMn9jn23nkkfwfAowSQAe4a1WWIyHA6t5nLQowqvS/Eq2X21ts4sIhOuAiR3cRz8uxGB TwW3ZYhb9Ls5W2z8L7l2f+51CeEAkebE0Fpz5/LylA45IdU3dpyUGHjIimoUK1/X0cbn kU11Nrn3pulsQL1Ex80QUg7XYa9nEKkvtjayk9+hp90agDYmRihzlWhZQZmyT+K0GcxX 3wsb/KCElKU5stYKeufPSSLDcUpcy0LHER7vT/iyW360zLgAeOVpAKYuKrLBScal8Veg B3dQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KlsQkKHP; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id da49-20020a05620a363100b0078a51c03fdasi8351045qkb.255.2024.03.27.12.42.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:42:15 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KlsQkKHP; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5C1F2385E82F for ; Wed, 27 Mar 2024 19:42:15 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by sourceware.org (Postfix) with ESMTPS id 3084A385E037 for ; Wed, 27 Mar 2024 19:40:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3084A385E037 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3084A385E037 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::102c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711568451; cv=none; b=B7N4M6lrkQR5au1rtAotXgX6WONeasC3ZLBwzpR6CtWmAPqsBtHj8PVgQ0ZIEGg+AnZx+c8Mj+V+94nzQsDnJ8uGT7Kb3I8OQw6kKiGkPeSar1uwJ1Z1/IYaOO94WeKFL5whbh3n3UH2G+s2P2PE1YfKCqdeHU933oez362zzo0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711568451; c=relaxed/simple; bh=wX45uKGaEumacqHgV0XE5fPzRX3klc784/S2m/Ik2O4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=xvYxfyhvAk9tMj4oLQluLQT7PrkrkAeom5a8hXUGjp37Wqd9TueNC9Yz2I9txjLq9CIy7yrteopz30WMg2f18vmpGDBgc0TUM0V7ry6vgS5WQ3JKQcSxOC9VdnnPcwhWXrVK9BnIVfnSeBwAIFWAhx7ii5vZwuspKlidxyfHnI4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-29a8911d11cso195485a91.1 for ; Wed, 27 Mar 2024 12:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711568447; x=1712173247; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mgzBHY8eIbS5Bsjmn6NMaIRe85fsSw17SEUeNUUQPqk=; b=KlsQkKHP59w9qgd+WmSETmF7Nyoshye0WrkNSnI144qK3X+M3NNBZ/YktlkJDBckG5 GUydthUjNxngoVhkZJb8HEjh1+ZgYUdYyAB6tsgr6ok4peuQPYAgL+TP44aRpTZ+k4g9 AGDURXDHnPyZcOCbvgtzFwdufUfKM5HKoczIleSoeEkw2PiHAYI0OHhJi3cYeFHKeE9X haMe972JULuf3WpwbaLVss9+7ZANMHL8I7Bpgfg0i+p7d7mMWBq+2f0kbJ6Lzu5mR1gr 3fBjs33YQcDy3eJxgQjJClYwdvytk80SlPsFfcLG7gHlJ47CLBjE/xXJCWnC60pZHJLH lSQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711568447; x=1712173247; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mgzBHY8eIbS5Bsjmn6NMaIRe85fsSw17SEUeNUUQPqk=; b=tTQvDS+DWCIlf8TRvD+51a6yWH2ngH7C5TGC+0uIiBDyI+IQTbALsz0AICrS6IvDmH rLQweW+23Ti5JnHk0RvvRkfvO+TyC3LStetfmeqbY8edL78rjyvWGSruq1KDOrEPfA1C ZCtTGsQCxGCE53MMQ/QpeYulE6+oplo00FGBg+ehHRUkeRSRV+2oJyDUHEbwcm0JkSBR 40SPY+i+avF374OKSAcF2fW/N4/DF3EMige5jzyVoBJ1kgPE6bGn9MKVmceUw97VFrOs KquvH5aA0IJ69D5wcwxnjeFZC5O0EidlRA+D/OiFI07t9IpBvBTW+Z8QDrXrA4azom3x 1OTQ== X-Gm-Message-State: AOJu0Yxf4ydgknyNU3zpskZEBM7sRAVXHckJrwvLa1dtMWCD+Ok9i3ML 24Y86sQNduFSuw3/gpIPRJ4nwOBi/2CtbqU1Az7f7vzLKMsacFVh+W9RBFRrwCMw3u7dF9+sNPF H X-Received: by 2002:a17:90a:7f98:b0:2a0:4008:2ac1 with SMTP id m24-20020a17090a7f9800b002a040082ac1mr679087pjl.26.1711568446801; Wed, 27 Mar 2024 12:40:46 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:67c4:6248:3d8a:f386]) by smtp.gmail.com with ESMTPSA id p11-20020a17090a348b00b002a091be027esm2277357pjb.31.2024.03.27.12.40.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:40:46 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v2 08/10] math: Provided copysignf128 for static libm on alpha, s390, and sparcv9 Date: Wed, 27 Mar 2024 16:40:22 -0300 Message-Id: <20240327194024.1409677-9-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240327194024.1409677-1-adhemerval.zanella@linaro.org> References: <20240327194024.1409677-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org Checked with a static build for the affected ABIs. --- math/Makefile | 1 + sysdeps/ieee754/ldbl-64-128/s_copysignl.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/math/Makefile b/math/Makefile index 516fa72a26..61736159d1 100644 --- a/math/Makefile +++ b/math/Makefile @@ -371,6 +371,7 @@ libm-test-funcs-auto-static = \ exp10 \ # libm-test-funcs-auto-static libm-test-funcs-noauto-static = \ + copysign \ fmod \ isnan \ # libm-test-funcs-noauto-static diff --git a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c index 11b42d04ba..80137847d3 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __copysignl, copysignl); #endif