From nobody Tue Jul 04 04:07:14 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qw8Px1ZBzz4lrxd for ; Tue, 4 Jul 2023 04:07:17 +0000 (UTC) (envelope-from pfg@freebsd.org) Received: from sonic305-20.consmr.mail.ne1.yahoo.com (sonic305-20.consmr.mail.ne1.yahoo.com [66.163.185.146]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qw8Pw5Gdzz4GQq for ; Tue, 4 Jul 2023 04:07:16 +0000 (UTC) (envelope-from pfg@freebsd.org) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688443634; bh=cdpvHP5/LX/plmr0TNOe8Kdt4gxh4FCZJ9ZatDM6xsQ=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=TiVCovbl454OVepULyLyyMNuzmJfjezoyhyJLLHuwKL/bxYt/nIY5cnxhAEO1GwHwyPUzfcKoHIfYlmBSeqdD3r6+Lxbu83IV+nzqaAaTV5Fu7nTMlI+Sn7iDOxRxjiFF4mOU4zpsFWW0O5+on/O2sLGj9XYuLMPQ8GWx6gHIUqZYYoZfIDIzV2lyhhcM2WKBam5MhC45dLyktQsDJUKfZlx0n/QFMny/+8GsLOO7NcyZ++5sZiMx5N7kEPeMomMydMyirDEkTK4H9NGeWM5Zh4Bl+KP2AhLKNIViZqn4+Dm/SPu+Ud3Xqc5J/NgJN/6SiPajl3eV06LZYHo/cNrrQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1688443634; bh=Rs3XTjRj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rKlKGNHEq5gQn2pzlsOEIGuy OI0fgyB.Xtg398KxdmXSP25QwnL0vMpbVP9hFIf0LMU.b3PyGc0kDGid0uLpfluVzwgfQ3oi4z6J m9MZZdeo.58OnpLS.Ra3onC.ERFFZ.fyn3mp036ZWZkebPJ4ZR2t3SdtxqV1RRGl80cJGJHP7cdN Z0wqqvrH9lZZZoJS2ugq9dKtBPgVF8Xd_JD.beNWgqkxB_ljB4Oil_Pcu_ZBrEZKUWrwqBDIZ4nU UDaakmXQZdAscamH5GCsQYIl074xCCXSuHpO2L0144HAbxUKcAUuW3G1PgfA.clW0W9ltGyyQ_Oz ttxrXjxuilnjF8NTc3HFh15RAdECo8hRlTc5ZohiasuBVnqI3_zgcbEZf4XZ.uKiuz6Y5xMam3mc AuzGgYtjm1jCJE_n85.3EWospyX1CCxUOHsgZ1t7qIVsPfvmpUAK1GkqIyyGxqb5p_YWTt0bQ0pN eO77E36OoJeL_FCKdgE6ee5SZn4fC6jbX X-Sonic-MF: X-Sonic-ID: a68c1913-c47d-4ca0-a729-7255f1b6d7fc Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Tue, 4 Jul 2023 04:07:14 +0000 Date: Tue, 4 Jul 2023 04:07:14 +0000 (UTC) From: Pedro Giffuni To: Warner Losh Cc: src-committers , "" , "" Message-ID: <1767168745.2134945.1688443634249@mail.yahoo.com> In-Reply-To: References: <202307040308.36438MTA093771@gitrepo.freebsd.org> <1037448433.54513.1688441647903@mail.yahoo.com> Subject: Re: git: 4456846a1a0d - main - bin/date: Upgrade calculations List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2134944_1918056855.1688443634248" X-Mailer: WebService/1.1.21612 YMailNorrin X-Rspamd-Queue-Id: 4Qw8Pw5Gdzz4GQq X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N ------=_Part_2134944_1918056855.1688443634248 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable (Sorry for top posting) Oh yes, the analysis is fine, and it is quicker to fix than what I had in m= ind. I'll take a look at fixing it now, but due to external issues I may have to= leave the fix for next weekend. Pedro. On Monday, July 3, 2023 at 11:00:51 PM GMT-5, Warner Losh wrote: =20 =20 =20 On Mon, Jul 3, 2023, 9:34 PM Pedro Giffuni wrote: Hmm ... Dragonfly has no armv7 or i386, so they didn't get it too wrong.I guess=C2= =A0the int64_t would be a quick fix or another option, which I was considei= rng, was to look at unsigning it but taking care of the edge cases ... I wa= s too lazy for that. Please go ahead and do the quick fix ;) What makes you say it's a quick fix? If the calculations need 64 bits, int6= 4_t is the proper data type. How is that analysis wrong? Also, it's tradition that you should fix it... Warner =20 ------=_Part_2134944_1918056855.1688443634248 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
(Sorry for top posting)

Oh yes, the analysis= is fine, and it is quicker to fix than what I had in mind.

I'll take a look at fixing it now, but due to external issues I may ha= ve to leave the fix for next weekend.

Pedro.


=20
=20
On Monday, July 3, 2023 at 11:00:51 PM GMT-5, Warner Lo= sh <imp@bsdimp.com> wrote:



O= n Mon, Jul 3, 2023, 9:34 PM Pedro Giffuni <pfg@freebsd.org= > wrote:
Hmm ...

<= /div>
Dragonfly has no armv7 or i386, so they didn't get it= too wrong.
I guess the int64_t would be a quick fix or another option, = which I was consideirng, was to look at unsigning it but taking care of the= edge cases ... I was too lazy for that.

Please go ahead and do the quick fix ;)
=

What makes you = say it's a quick fix? If the calculations need 64 bits, int64_t is the prop= er data type. How is that analysis wrong?

Also, it's tradition that you should fix it...

Warner
------=_Part_2134944_1918056855.1688443634248--