From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lp05.alfaservers.com (lp05.alfaservers.com [5.79.125.134]) by sourceware.org (Postfix) with ESMTPS id E8DF03858D39 for ; Wed, 8 Feb 2023 09:09:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E8DF03858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=blueice.be Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=blueice.be DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=blueice.be; s=default; h=Content-Transfer-Encoding:MIME-Version:Content-Type:In-Reply-To: Subject:To:From:Message-ID:Date:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FDF0HyL7AhRrZm0iunXvguf48/ot/yCbHoI9uzJdpjM=; b=mCxYwK1iSLbNniVbIHE0lpyIHO srLPB2Pj2y4ERTkiEg3E/I1wSxVVmTmgKcMl1htJJro0SICBegC14V3CqE9ySl1qLAHOl7M6inmJE uoQzvYlyetqJqBZQaEsLyeJrqTFJ+RvuFPSEsDTb0MoNgQ4Q0Oc/siJ2TT3s0Q3rOgwNZuvG1E5O1 S0YrWfaWf06r2ojbPaSIFQioRos8i/WX5FNGn6QIj3R4DRRgGuEbiRGit1z4IMHpieciZKMswjTiW LyHbYr9ESzWs27pXt+/wFytrkgdP0c/y4z9bA8EtDa8vNd/2gcdRszhq0ecrSy23PGY9EzbeT+Oon lcQl/PVQ==; Received: from [::1] (port=39408 helo=lp05.alfaservers.com) by lp05.alfaservers.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.95) (envelope-from ) id 1pPgSC-0004Fx-K2 for gcc-help@gcc.gnu.org; Wed, 08 Feb 2023 10:09:22 +0100 Received: from 180.135-182-91.adsl-dyn.isp.belgacom.be (180.135-182-91.adsl-dyn.isp.belgacom.be [91.182.135.180]) by webmail.blueice.be (Horde Framework) with HTTPS; Wed, 08 Feb 2023 10:09:22 +0100 Date: Wed, 08 Feb 2023 10:09:22 +0100 Message-ID: <20230208100922.Horde.E80Kc__Nr8RUMRxBbPIGDXo@webmail.blueice.be> From: henri.cloetens@blueice.be To: gcc-help@gcc.gnu.org Subject: Re: Bytes of long double - trouble . . . In-Reply-To: <1675846132.6232748@f313.i.mail.ru> User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - lp05.alfaservers.com X-AntiAbuse: Original Domain - gcc.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - blueice.be X-Get-Message-Sender-Via: lp05.alfaservers.com: authenticated_id: henri.cloetens@blueice.be X-Authenticated-Sender: lp05.alfaservers.com: henri.cloetens@blueice.be X-Source: X-Source-Args: X-Source-Dir: X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_50,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Dear Sergey, добрий ден ! This is most likely because, on the machine you are using, the type long double is emulated in software, and the way it is emulated is different in both versions. Best Regards, С уважением, Henri. Quoting Sergey Smith : > To:    gcc-help@gcc.gnu.org     > Dear GCC,  [ 8:2:23  ] >                   Like Woooew ! What is THIS!?  I installed Visual > Studio Code, & your 32 bit C, Version 9.2.0. I ran : >    printf("\nOn THIS particular computer, long double is given %d > bytes\n", sizeof(long double)); /* The Answer was: 12 bytes. >    THEN, I updated to C Version 12.2.0 and ran the same code, - ON > THE SAME COMPUTER, - but NOW the answer is:  16 bytes ! >   >     HOW can this happen if, as I understand it, - this function is > supposed to assess a computer’s  *hardware* ?  I am on Windows 10 btw. >                                                                     >                    — Sergey. >   > С уважением, > Sergey Smith > sergey-16a5@mail.ru