From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4488 invoked from network); 16 May 2023 19:31:58 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 16 May 2023 19:31:58 -0000 Received: (qmail 19908 invoked by uid 550); 16 May 2023 19:31:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 30442 invoked from network); 16 May 2023 18:49:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1684262951; i=newbie-02@gmx.de; bh=qINxhITiMsT1OMW1/1oSjvGSD5m4h3uEfgNt7/gBuoU=; h=X-UI-Sender-Class:From:To:Subject:Date; b=GAn2kmvCEGqnVM03IWcZozunKjDpoAnPsHVKR1/W1oxWGF92eGW7tDAVyRbtWQ+9n dEr0yY/T/WB+sh84SzI3qhfCqDeyT6v4tj16MHcDPNd663Sk0e5Pt1S7BKuKvvOxnc g4WMEkyYXgPQDmAvXcTp78wy+6Q0hVz7OWsP8OCvl8Iew89PDNxWD9S0OhpzuP0Loz MER6DrinDCDDoggn/kNHTzrO0xcoeYJ23h4eKso3Tpdpsl/ESJj/ciD8ntDlTtaXw9 lWpy4syljHS/mI55SQDmoZGwXCmLjr8Hit2DVh9xo8j1Gze3Wvw3fOpYJwyS9Aq2M9 /EYEgtsjFKVYA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a MIME-Version: 1.0 Message-ID: From: newbie nullzwei To: musl@lists.openwall.com Content-Type: text/plain; charset=UTF-8 Date: Tue, 16 May 2023 20:49:11 +0200 Importance: normal Sensitivity: Normal Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-Provags-ID: V03:K1:nC+gZHrxS0IfpWp00lY3jENJMo5L4EWKsdfA5JkI0nutWOtT9s7sKctKwdo7x+Q4FGbNj fj5w1mTmOlgZ3Qc6GpYwSVuJwarac7aEIxp0CH1GLOJCAdRCOS1rtq/zgnqkw0IZ0qM+4xkBEwFD shRdzjibEMQ4IIniC0bS0+CUqBHXP42w38/K5PSUlKQ1lAL3rPgmCug4S1kyPkhsx8/zdHFarf9Y VJmTj3CP+GKtV4Gv0aMxzYRd9WrsIj5c8nfWWAwnd9MwlxhbkAv+5bVpKEVlbF/TjoKPgHwbfx7T CA= UI-OutboundReport: notjunk:1;M01:P0:rN1mqiG+uCU=;5YyfEVj4/M+PqofVcRiubi+icY9 Pqd6wb7mk9FhFfKaxSQ2lPTA67kLCtPi5qEPHzF7nQd20TFCY8bIaUPms4xYbKclY615CopoC CKdEcbYjOTtTmh6nZMipLZVbliEwMQTQ15Hj4fPHTN5BY6UTZoM+TVQW2zprpzyfDY+wumJYO +S36vQehJ7aXKELoyR8p1y6Pw6C+7gcDpNVwilIPrJYBkhruTSuYHB6SQjKiZdFqjT7qQsXTX 844nC5rF+djK1xOjvAvZ45/eVKWCks+tpKqUVRhGG4tuQx/eBctFLiGJqZyJovGBrSZU29MMZ EI2M8s65T1VP+ukSK7jpRwyecAMP9XOrws+KDv6nteZIYeTNy8F7pU05RS7oiTQABnB/+pW44 wrAMbdWqq8lv398A2QLyJPHa1DU8o4nJ9ShbnQvNzrz3/EW7v1ilYQ3Ocx2gTGGZsyBd5j7H2 7IYzDHfhGtv443uBVYsP4E/7yDs6ugEp4Mg+9i0lJZUTBpK528nRlflLdaI0nuZBF2/P1h8IG ANTe+yrKocMVrpFHrcZKy61TpAiw5WRrti3Goo098oy1dyozzctm6vZ2N89mW4O6H4b4VUJTY E2LY0HbWuRjk706XksMxdZTl7RaqFdOZjnOVFhhZLKVaPWmeXFxwbhAzEYPJtOGcRMA9fkwkF e2NpISGtOz2nWqXV9YlQapccT1IDgE8qRVDM89ttVmJKhQ1bW31SPQUESY/PtnXeMJEC7sS8J Gy9LI+CFR3eLF5XiHaep7ZFf1yS6C+4xya01ZvHzfhc3lYtZT5dXHdtSxqq85la+I4Z0cr0v/ ziJ4gh6crAHoOGkvIUb31AKPpwVw0g0rqynvxSPj7KVZ4= Subject: [musl] DTOA: question about rendering / code pointer ( apologize - re-tweet - 'plain text', hope that will work better |=20 apologize - re-tweet - now 'subscribed' - got the impression my mails didn't make it through to the list while not subscribed? )=C2=A0 =C2=A0 hello @ all,=C2=A0 =C2=A0 gnumeric uses musl dtoa for rendering, and a self constructed=C2=A0 'brute force' concept to find 'shortet round tripping' figures mostly=C2= =A0 similar to https://www=2Eexploringbinary=2Ecom/the-shortest-decimal-string= -that-round-trips-may-not-be-the-nearest/=C2=A0 =C2=A0 we face the same issue as mentioned there, some powers of two=C2=A0 miss to get the shortest 'round tripping' string, but have assigned=20 another=C2=A0one digit longer string=2E=C2=A0Forcing to one digit less pro= duces a=20 string one decimal off in last position, and not tripping back to=20 the original double=2E=20 =C2=A0 Example: 0x1p-44 ( 2^-44 ) is rendered to=C2=A0 5=2E6843418860808015E-14 when allowed 17 digits, for=C2=A0 16 digits it switches to 5=2E68434188608080**1**E-14, which is=C2=A0 not too bad as the 'exact' decimal weight of the binary representative=C2= =A0 is ~5=2E684341886080801486969E-14, thus undershot to ~15, but!=C2=A0 it points to a different double, and 5=2E68434188608080**2**E-14=C2=A0 would be a better choice as it round trips to the originating double=C2=A0 value=2E Affected ~46 integral powers of two in doubles, many more=C2=A0 with long doubles=2E =C2=A0=C2=A0 =C2=A0 Is there any hope musl could change that? provide it as an option?=C2=A0 Or can anyone give a code pointer or nearer explanation to enable=C2=A0 us to patch it for our 'exotic' use?=C2=A0 =C2=A0 best regards, TIA for any help=2E=C2=A0 =C2=A0 b=2E=C2=A0