{"id":2228409,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2228409/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260426134002.865628-23-richard.henderson@linaro.org/","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.1/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260426134002.865628-23-richard.henderson@linaro.org>","date":"2026-04-26T13:38:59","name":"[22/84] fpu: Drop parts_sint_to_float","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"af7d85f20e24793e8f8639cd406cdd927b7c09b1","submitter":{"id":72104,"url":"http://patchwork.ozlabs.org/api/1.1/people/72104/?format=json","name":"Richard Henderson","email":"richard.henderson@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260426134002.865628-23-richard.henderson@linaro.org/mbox/","series":[{"id":501533,"url":"http://patchwork.ozlabs.org/api/1.1/series/501533/?format=json","web_url":"http://patchwork.ozlabs.org/project/qemu-devel/list/?series=501533","date":"2026-04-26T13:38:37","name":"fpu: Export some internals for targets","version":1,"mbox":"http://patchwork.ozlabs.org/series/501533/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2228409/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2228409/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=s1T/Tb4k;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists1p.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g3Sfd2Yl5z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 23:46:49 +1000 (AEST)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists1p.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1wGzjT-0007VW-HT; Sun, 26 Apr 2026 09:41:11 -0400","from eggs.gnu.org ([2001:470:142:3::10])\n by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>)\n id 1wGzjR-0007UF-Mv\n for qemu-devel@nongnu.org; Sun, 26 Apr 2026 09:41:09 -0400","from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>)\n id 1wGzjQ-00005G-7C\n for qemu-devel@nongnu.org; Sun, 26 Apr 2026 09:41:09 -0400","by mail-pl1-x62d.google.com with SMTP id\n d9443c01a7336-2b25cf1b5f0so51270855ad.3\n for <qemu-devel@nongnu.org>; Sun, 26 Apr 2026 06:41:07 -0700 (PDT)","from stoup.. ([180.233.125.15]) by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b5fab30f29sm277940375ad.68.2026.04.26.06.41.03\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sun, 26 Apr 2026 06:41:06 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1777210867; x=1777815667; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=zENj2HL3D0APPnrwzC9d7FulsD17Lin4fmHz2/94vtM=;\n b=s1T/Tb4kv9PLHjl//NXkmOhGCR1IP89qI3PzeHqADbSmBY4qGOAdBkKGfwkRtdeFTb\n gglvEkxRfzviLzdoLgg1w7gMEGmMMzaArl8mI3USmAisN6BwTZHUjkw5jrxeTTEp8c2e\n 8sorzjTyRKSTFhQo8OEZB7PAwn5IeAfyE/j0YnWWMy8OKX1iSz5V7ba7dW9qmhdLIUwW\n /K6VPQU2/DCRjJqEdFFaiEp7MWXG3AIkPnMDf+wSbnKCI6oRJVIADN1tNMis/W/wazev\n tbKpAx8g3MXdZkQEE1YYtln0zUWkxSiy2MExDXieV9QMaqrC5q+71Ru/XGnkrcnF6UbY\n r4tA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777210867; x=1777815667;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=zENj2HL3D0APPnrwzC9d7FulsD17Lin4fmHz2/94vtM=;\n b=Ej9P6YmkE+zy/Xyp7z1uadweZ5KY1iOHjFR0nH6cVGGoL04nQIPyfjUjmAWT62yCJ1\n U9acRQWOOqSEOq0qIdIjeH5zX9PzaZFc11Ij3lRnK2N6WIIGIHLQXExdwVz9m9AulBmN\n 2E2C695SorUw+wh+S3jJKdchxxN/z7nluGlIcoPACfBsWtdpk9VLJ2PYvWzHpaGcVxR5\n yosnJ7RvFPiLuNmBTfZSX9X/HddMvqBcyMdJvpdEub8gM5HbSth6l/S5F93pGfH33ufJ\n JuFCVr6hjVBpzeojOBI0XOvJ3kH/F3bhSq0yow+hcUyJJN1cYtYjJ0FzFEBBHRuKGK3x\n 4r8A==","X-Gm-Message-State":"AOJu0YwR1XZ73YHHhtZ8oBXl/p7WkidQRaFIy0SZy9PzmEfeRqj8FUbf\n Xkem90nQLHAe5Da9mXG4jIujxZW0uFsVnmYQyamPAmuqez7/IF4qW2Zjgxxu4GRgDIbrYNlCjAR\n 6GqJ/YeI=","X-Gm-Gg":"AeBDiesOmSYBHMAuZYbJmlD48OAIaDWQ0B+6ooME1/XhuA+xm48/wAMohCp0kpKnNGm\n qw3dM275aSNRipTpm9/CNMhNQuuzAhEV96hBCIrCO7ClINZI+c97wUFoSFwANkc2vQeZV6dN26o\n MK1z8NpK37772I5kK95zgvSBft+ch3r7k/H+8SdqnwiIzXyS+XzjZnDSl9vnYXytB32QHRLK/Z8\n l6cfA5IHLlCrtdKhlcVvW/t/VBmOAsQiYysP7gBGEX2n+ksYwLYGrzCSnWBShcc6nqPihr+sqsC\n ktu7+95gjxG78CQINJWVk36HCCRHUaabd7DoWWpXVfWz25W8znx/pqeI0jqZctYg4lROU05elJm\n 1zL5FNiq1Z/oAsBMyEfLqQ4AHWhmTp245mmhO5U26nxKo4swUu+xH2rXDNTssy67OtrRz90zK+p\n ZKKxTuAdKKOhHhJLTLHJu6WkmShoolWoDR/fCUfvbB","X-Received":"by 2002:a17:902:d393:b0:2ad:d0ff:2ed4 with SMTP id\n d9443c01a7336-2b5f9e5da5fmr263578875ad.6.1777210866640;\n Sun, 26 Apr 2026 06:41:06 -0700 (PDT)","From":"Richard Henderson <richard.henderson@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"qemu-arm@nongnu.org,\n\tqemu-s390x@nongnu.org","Subject":"[PATCH 22/84] fpu: Drop parts_sint_to_float","Date":"Sun, 26 Apr 2026 23:38:59 +1000","Message-ID":"<20260426134002.865628-23-richard.henderson@linaro.org>","X-Mailer":"git-send-email 2.43.0","In-Reply-To":"<20260426134002.865628-1-richard.henderson@linaro.org>","References":"<20260426134002.865628-1-richard.henderson@linaro.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2607:f8b0:4864:20::62d;\n envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.google.com","X-Spam_score_int":"-20","X-Spam_score":"-2.1","X-Spam_bar":"--","X-Spam_report":"(-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"Use parts{64,128}_sint_to_float at each call site.\n\nSigned-off-by: Richard Henderson <richard.henderson@linaro.org>\n---\n fpu/softfloat.c           | 18 +++++-------------\n fpu/softfloat-parts.c.inc |  2 +-\n 2 files changed, 6 insertions(+), 14 deletions(-)","diff":"diff --git a/fpu/softfloat.c b/fpu/softfloat.c\nindex 0b2638c34b..bbfdf1a076 100644\n--- a/fpu/softfloat.c\n+++ b/fpu/softfloat.c\n@@ -779,14 +779,6 @@ static float128 QEMU_FLATTEN float128_pack_raw(const FloatParts128 *p)\n                   FloatParts128 *: parts128_##NAME, \\\n                   FloatParts256 *: parts256_##NAME)\n \n-static void parts64_sint_to_float(FloatParts64 *p, int64_t a,\n-                                  int scale, float_status *s);\n-static void parts128_sint_to_float(FloatParts128 *p, int64_t a,\n-                                   int scale, float_status *s);\n-\n-#define parts_sint_to_float(P, I, Z, S) \\\n-    PARTS_GENERIC_64_128(sint_to_float, P)(P, I, Z, S)\n-\n static void parts64_uint_to_float(FloatParts64 *p, uint64_t a,\n                                   int scale, float_status *s);\n static void parts128_uint_to_float(FloatParts128 *p, uint64_t a,\n@@ -4013,7 +4005,7 @@ float16 int64_to_float16_scalbn(int64_t a, int scale, float_status *status)\n {\n     FloatParts64 p;\n \n-    parts_sint_to_float(&p, a, scale, status);\n+    parts64_sint_to_float(&p, a, scale, status);\n     return float16_round_pack_canonical(&p, status);\n }\n \n@@ -4098,7 +4090,7 @@ float64 int64_to_float64_scalbn(int64_t a, int scale, float_status *status)\n         return ur.s;\n     }\n \n-    parts_sint_to_float(&p, a, scale, status);\n+    parts64_sint_to_float(&p, a, scale, status);\n     return float64_round_pack_canonical(&p, status);\n }\n \n@@ -4131,7 +4123,7 @@ bfloat16 int64_to_bfloat16_scalbn(int64_t a, int scale, float_status *status)\n {\n     FloatParts64 p;\n \n-    parts_sint_to_float(&p, a, scale, status);\n+    parts64_sint_to_float(&p, a, scale, status);\n     return bfloat16_round_pack_canonical(&p, status);\n }\n \n@@ -4203,7 +4195,7 @@ float128 int64_to_float128(int64_t a, float_status *status)\n {\n     FloatParts128 p;\n \n-    parts_sint_to_float(&p, a, 0, status);\n+    parts128_sint_to_float(&p, a, 0, status);\n     return float128_round_pack_canonical(&p, status);\n }\n \n@@ -4216,7 +4208,7 @@ floatx80 int64_to_floatx80(int64_t a, float_status *status)\n {\n     FloatParts128 p;\n \n-    parts_sint_to_float(&p, a, 0, status);\n+    parts128_sint_to_float(&p, a, 0, status);\n     return floatx80_round_pack_canonical(&p, status);\n }\n \ndiff --git a/fpu/softfloat-parts.c.inc b/fpu/softfloat-parts.c.inc\nindex d8eb9f5b78..8405cf29cd 100644\n--- a/fpu/softfloat-parts.c.inc\n+++ b/fpu/softfloat-parts.c.inc\n@@ -1779,7 +1779,7 @@ static void partsN(log2)(FloatPartsN *a, float_status *s, const FloatFmt *fmt)\n     r |= (a1 || a0 & ~DECOMPOSED_IMPLICIT_BIT);\n \n  exact:\n-    parts_sint_to_float(a, a_exp, 0, s);\n+    partsN(sint_to_float)(a, a_exp, 0, s);\n     if (r == 0) {\n         return;\n     }\n","prefixes":["22/84"]}