From nobody Mon Feb 9 04:14:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1547148072210319.47417326492655; Thu, 10 Jan 2019 11:21:12 -0800 (PST) Received: from localhost ([127.0.0.1]:60154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghft7-0006Lw-5X for importer@patchew.org; Thu, 10 Jan 2019 14:21:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghfrd-0005bS-S8 for qemu-devel@nongnu.org; Thu, 10 Jan 2019 14:19:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghfrc-0000TN-Uf for qemu-devel@nongnu.org; Thu, 10 Jan 2019 14:19:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:52090) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghfrX-00006e-Qs; Thu, 10 Jan 2019 14:19:33 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 16A01A1F68; Thu, 10 Jan 2019 19:19:16 +0000 (UTC) Received: from blue.redhat.com (ovpn-116-216.phx2.redhat.com [10.3.116.216]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8D64767178; Thu, 10 Jan 2019 19:19:15 +0000 (UTC) From: Eric Blake To: qemu-devel@nongnu.org Date: Thu, 10 Jan 2019 13:18:59 -0600 Message-Id: <20190110191901.5082-6-eblake@redhat.com> In-Reply-To: <20190110191901.5082-1-eblake@redhat.com> References: <20190110191901.5082-1-eblake@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 10 Jan 2019 19:19:16 +0000 (UTC) Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v3 5/6] Revert "include: Add a comment to explain the origin of sizes' lookup table" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kwolf@redhat.com, lbloch@janustech.com, armbru@redhat.com, qemu-block@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" This reverts commit 1240ac558d348f6c7a5752b1a57c1da58e4efe3e. The table itself is about to be reverted, now that it has no clients. Signed-off-by: Eric Blake --- include/qemu/units.h | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/include/qemu/units.h b/include/qemu/units.h index 1c959d182e8..68a77586504 100644 --- a/include/qemu/units.h +++ b/include/qemu/units.h @@ -17,24 +17,6 @@ #define PiB (INT64_C(1) << 50) #define EiB (INT64_C(1) << 60) -/* - * The following lookup table is intended to be used when a literal string= of - * the number of bytes is required (for example if it needs to be stringif= ied). - * It can also be used for generic shortcuts of power-of-two sizes. - * This table is generated using the AWK script below: - * - * BEGIN { - * suffix=3D"KMGTPE"; - * for(i=3D10; i<64; i++) { - * val=3D2**i; - * s=3Dsubstr(suffix, int(i/10), 1); - * n=3D2**(i%10); - * pad=3D21-int(log(n)/log(10)); - * printf("#define S_%d%siB %*d\n", n, s, pad, val); - * } - * } - */ - #define S_1KiB 1024 #define S_2KiB 2048 #define S_4KiB 4096 --=20 2.20.1