public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: henri.cloetens@blueice.be
To: gcc-help@gcc.gnu.org
Subject: Re: Bytes of long double - trouble . . .
Date: Wed, 08 Feb 2023 10:09:22 +0100	[thread overview]
Message-ID: <20230208100922.Horde.E80Kc__Nr8RUMRxBbPIGDXo@webmail.blueice.be> (raw)
In-Reply-To: <1675846132.6232748@f313.i.mail.ru>

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 <sergey-16a5@mail.ru>:

> 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




  reply	other threads:[~2023-02-08  9:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-08  8:48 Sergey Smith
2023-02-08  9:09 ` henri.cloetens [this message]
2023-02-08 11:12   ` Jonathan Wakely
2023-02-08 11:11 ` Jonathan Wakely
2023-02-15 12:50 ` Dennis Clarke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230208100922.Horde.E80Kc__Nr8RUMRxBbPIGDXo@webmail.blueice.be \
    --to=henri.cloetens@blueice.be \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).