From patchwork Wed Mar 27 19:40:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 87737 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4080C3860760 for ; Wed, 27 Mar 2024 19:42:13 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id A1B37385E454 for ; Wed, 27 Mar 2024 19:40:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A1B37385E454 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 A1B37385E454 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::429 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711568457; cv=none; b=opoGgJdcn99IkzkqDULicJPXfIujFpmr82AqfKzmJD/UTcMHRt5EsA07g5zmwigOWze5WZPlZf8Ff7ooUXw0CqUlRQp5jMMiUT0PCJ4YySUh5uYcMbXyw4a/Pn/vWwXJWom/e57eUE7vIAk8Uup7Z/uwk+natZvMP2/5GfqnRms= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711568457; c=relaxed/simple; bh=/Xf7aJ0aBDDwls/BEo72jFQHS+OKW6FU016uLRxh+I0=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=JH0wAd0RSrxoItWTvaAGiZ2fjdF9UarB5eEtESTyvXOCIIUHK0jatbxBZLP01dZ1cRT5fEHBPXZRLNES46e6ush8znup7ExLIGE/Bta3v6ZDnZAzczvqzSllNM6vPz/BT7FosK34vi//2WH7PK2Dw/MYGN8rtxRcVydTDaDQTYs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e8f51d0bf0so238257b3a.3 for ; Wed, 27 Mar 2024 12:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711568451; x=1712173251; 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=XEBGnvKMJc/FekL1l9x46E5WjtTLo3MX29wvCcbEgeE=; b=evRsfxQQkTuQcm0IyfiwMvKaQS+1GUSAELqJV6cxXY5Qbuz2Y8N9dvekWH1mqNJERB tLD/NFTN0WaUfVM8/+3b8TLIqEyaodaaX5vpF1sO/OoUNZhTMKlowJEi/RFqME8m4+Bi yW2FEhQgWEanuX6q051G0gzXfa8WgUsNnpe+Po+TzcObPOiClenjZv0BEOQDHVjRCzCx 9/abDzuJigDRKCDGhtjuln4ERh4MxeITmIwe1K45qPHMo1U543q7kBp03RmbxLF+Ry94 UD3EWIvpdUQIRkjfT13NB9QCw0VCJ7W5xRpS84BemZNwcKI5GDHAZGpEe2jlwVAE91ul SAcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711568451; x=1712173251; 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=XEBGnvKMJc/FekL1l9x46E5WjtTLo3MX29wvCcbEgeE=; b=YLUGfCcWlGQR+vssUH/4ZWvTqd+G503EF/82ZefXgctBjWuOWGA37PjjqgdcNwYEy+ RNVlDtZeJgsITQ6XxBL/ORsbtOWBbRUawk12e+kDLkCP+ITYmAnwy74PwPkF7KtPcoCZ R3LnRq5rutvHJXi+EOet28i0mhttTiBdK4L/v74rRJC124hSuDajdHlc259y4BzhpE3a POadZ1z+mpUl65TzdLgRI/+RM778BAnP3ZStEmnZUHyh0Msgf20PK/NbYGQYQPg+dWAT 4jzFL9+iP/2vuXt5ynussClw7PIAM80oPJp6UARD498MZnwpOUbViPyv+GvMeVfxf6W6 uHUQ== X-Gm-Message-State: AOJu0YyfwgO9gIKYCD3tD6S8ShOKTZ4A9+lqEKORX4ElFFxdepXBAxQv 2RbPH27Tz6AQpptXVFQ8uozi2frHn++9978Z//Z3XNAjLIiN10u2aWvgGg7/y04bLov6xET8Qx3 / X-Google-Smtp-Source: AGHT+IFp6S60QJ1okW8P0QhMFQhlILPpYifessj7ApULrZXcKyiCP7Zg3E3UV2KOLPEgoLwARltu6A== X-Received: by 2002:a05:6a20:3d88:b0:1a3:56df:c9bc with SMTP id s8-20020a056a203d8800b001a356dfc9bcmr933631pzi.40.1711568450998; Wed, 27 Mar 2024 12:40:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:40:50 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v2 10/10] math: Provide modf128 for static libm on alpha, s390, and sparcv9 Date: Wed, 27 Mar 2024 16:40:24 -0300 Message-Id: <20240327194024.1409677-11-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+patchwork=sourceware.org@sourceware.org Checked with a build for the affected ABIs --- math/Makefile | 1 + sysdeps/ieee754/ldbl-64-128/s_modfl.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/math/Makefile b/math/Makefile index 655f6ed4e3..af1909d0c7 100644 --- a/math/Makefile +++ b/math/Makefile @@ -375,6 +375,7 @@ libm-test-funcs-noauto-static = \ fmod \ frexp \ isnan \ + modf \ # libm-test-funcs-noauto-static libm-test-funcs-narrow-static = libm-test-funcs-all-static = $(libm-test-funcs-auto-static) $(libm-test-funcs-noauto-static) diff --git a/sysdeps/ieee754/ldbl-64-128/s_modfl.c b/sysdeps/ieee754/ldbl-64-128/s_modfl.c index 7d7aeae111..ba3d31334a 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_modfl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_modfl.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, __modfl, modfl); #endif