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: 783154 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2375032wrt; Wed, 27 Mar 2024 12:41:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVL5vGWQ0X5SmQHr3yvui9jsZC1RKRegpYCPfM8SUacOZAJlR2aq4Dnjzny2ywemAAKEB1Vk3MWQaNmIMtuYNDo X-Google-Smtp-Source: AGHT+IHrnMmJ/xic7FyDl8ERmtwEV8FgIxMPMvUoPTSGpRdloWmTw6nbfiYgxNz1O41le/C3sKOc X-Received: by 2002:a05:6214:4c0d:b0:696:72ba:100c with SMTP id qh13-20020a0562144c0d00b0069672ba100cmr521000qvb.45.1711568518977; Wed, 27 Mar 2024 12:41:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711568518; cv=pass; d=google.com; s=arc-20160816; b=CNhWq+6GRd33sxwxha4rULMlkir80HNHcE3gweuJtvRkfTC/Xk2nHihyGocmGe4ItR pZOZSNZarUMs6QMS8P7Hqnj1cWQse2Ar2eMPYFHdHQ29UkkiJHpAF7m62hBbj14/dgxW S4CBMivAcakdxLrnV+uZ7kSH/vhD3sWm7OVwnVtr59fTM5hIjlXhyqIDOxMSRoMBNGTO 5K9QlmatB2Aq44dv/WzeDBMh1qz6Ls9m5DlghRy73cXNNHTOnmQmnes5UFeUXfB99Wz8 /kJFu5W1H41I2S803Voc0cK4CTfWjfNCA0QhG3UiMwblJGkkNu5KE+K9jw8VUQIX1fne uiYQ== 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=XEBGnvKMJc/FekL1l9x46E5WjtTLo3MX29wvCcbEgeE=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=GZAwPsNVrf6YIN0W3ac/ciKU9raeYyvgBSkEzi1jL8B8IE+14KX0ozckgjuSu14uSN dgqbP3Ufjsu/06kA2ltRwYGJQ/cujHMrvMb8u9JhJE5cZhilPvEXQ7hhDlluyFehBuPY EsjX1iT8TkcINRY1P8YBbRUG6m0x2ZRZ3iWgM59LhLh4b7mgZFjss80TUeLDrQmN5po4 F57zAdJG0cpycnuHGXjgoTot2khVm0vhytScOIXphg3fnCJBFl3rprpGTaSF+RifdAxd 0ANv/7stGlwaJ64rtv1wAMGiO/umM16LsTmxOF9o6TMm94tL2VDh4eSaAYYuG69yXurO H3tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=evRsfxQQ; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id kj16-20020a056214529000b006968ce8409esi7386671qvb.184.2024.03.27.12.41.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:41:58 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=evRsfxQQ; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 99C92385E44F for ; Wed, 27 Mar 2024 19:41:58 +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-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+patch=linaro.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