From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 5C5F747AFD for ; Tue, 2 Jan 2024 00:10:39 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E340A68C838; Tue, 2 Jan 2024 02:10:36 +0200 (EET) Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1717868C671 for ; Tue, 2 Jan 2024 02:10:30 +0200 (EET) Received: by mail.gandi.net (Postfix) with ESMTPSA id 245D640003 for ; Tue, 2 Jan 2024 00:10:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1704154229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=V1+kpCkI+E6lYD3Mlan89teZYcMs6P2o/9hOGDqknf0=; b=UbsVcK2mjtG2pXTNk4+upBhhCV7jZGlCMI6Bmbj7CcUMUiIOMtOXQ2SHtDSMRlOReTjGkO TFTVmgxEqDggei36Kes8xf4Lv1sV+sHLPVphGYQ67n7AVtZOheeebz7kQflm7s+LJFTCpx QXXw6gIYp4zMkkA0uCXtBbx15xrrAnKC1T/QB6i1tw516zyMqkul4qIeVgTfyBX8N4iiLq LMPUsDxa/mCXVss1AKk4D2QtsMYSGp7zyxdmRNHh3FciY1aEygnPIMLZHDA+GddyFAL66Z ujp/QAZkuyzKtCry77TGWMWGyPQzscabmIVX8VVax02n9mD5HSRm+qg9Dwmm2A== Date: Tue, 2 Jan 2024 01:10:28 +0100 From: Michael Niedermayer To: FFmpeg development discussions and patches Message-ID: <20240102001028.GW6420@pb2> References: <20240101193859.1038078-1-stefasab@gmail.com> MIME-Version: 1.0 In-Reply-To: <20240101193859.1038078-1-stefasab@gmail.com> X-GND-Sasl: michael@niedermayer.cc Subject: Re: [FFmpeg-devel] [PATCH 1/2] libavutil/eval: introduce UINT64_MAX constant X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: multipart/mixed; boundary="===============5530415794963436665==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============5530415794963436665== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iZR1g1PffMUS+iOu" Content-Disposition: inline --iZR1g1PffMUS+iOu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 01, 2024 at 08:38:58PM +0100, Stefano Sabatini wrote: > This might be useful, e.g. when setting the random seed expressed as a > uint64_t. > --- > doc/utils.texi | 3 +++ > libavutil/eval.c | 1 + > 2 files changed, 4 insertions(+) >=20 > diff --git a/doc/utils.texi b/doc/utils.texi > index 0c4f146f4f..ac9b63826e 100644 > --- a/doc/utils.texi > +++ b/doc/utils.texi > @@ -1030,6 +1030,9 @@ area of the unit disc, approximately 3.14 > exp(1) (Euler's number), approximately 2.718 > @item PHI > golden ratio (1+sqrt(5))/2, approximately 1.618 > +@item UINT64_MAX > +maximum value expressed as an unsigned integer, corresponds to > +18446744073709551616 ((2^64)-1) this doesnt look right 2^x is even even -1 is odd 18446744073709551616 should be a odd number 18446744073709551615 looks more likely double precission also doesnt like exactly ((2^64)-1) because the mantisse = has too few bits (U)INT64_MIN should work though exactly in double thx [...] --=20 Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Avoid a single point of failure, be that a person or equipment. --iZR1g1PffMUS+iOu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABEIAB0WIQSf8hKLFH72cwut8TNhHseHBAsPqwUCZZNUaAAKCRBhHseHBAsP q/caAJ9YoAhueYY9qTCpZUmaB1AwCdbkFACgjjzEW4cxxJpIPF1es4nDDfMb2ik= =MF85 -----END PGP SIGNATURE----- --iZR1g1PffMUS+iOu-- --===============5530415794963436665== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============5530415794963436665==--