public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* 128-bit data model macros
@ 2020-01-25  3:41 Jeffrey Walton
  2020-01-25 12:48 ` Segher Boessenkool
  0 siblings, 1 reply; 3+ messages in thread
From: Jeffrey Walton @ 2020-01-25  3:41 UTC (permalink / raw)
  To: gcc-help

Hi Everyone,

On 64-bit platforms _LP64 and __LP64__ are defined.

Do 128-bit machines use the macros _LP128 and __LP128__?

Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 128-bit data model macros
  2020-01-25  3:41 128-bit data model macros Jeffrey Walton
@ 2020-01-25 12:48 ` Segher Boessenkool
  2020-01-26  3:07   ` Jeffrey Walton
  0 siblings, 1 reply; 3+ messages in thread
From: Segher Boessenkool @ 2020-01-25 12:48 UTC (permalink / raw)
  To: Jeffrey Walton; +Cc: gcc-help

Hi!

On Fri, Jan 24, 2020 at 10:40:47PM -0500, Jeffrey Walton wrote:
> On 64-bit platforms _LP64 and __LP64__ are defined.

That's not quite true.  Those macros mean that "long int" as well as
pointers are 64 bits, for the selected ABI.

> Do 128-bit machines use the macros _LP128 and __LP128__?

There is __SIZEOF_INT128__, that may be what you are looking for.


Segher

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 128-bit data model macros
  2020-01-25 12:48 ` Segher Boessenkool
@ 2020-01-26  3:07   ` Jeffrey Walton
  0 siblings, 0 replies; 3+ messages in thread
From: Jeffrey Walton @ 2020-01-26  3:07 UTC (permalink / raw)
  To: gcc-help

On Sat, Jan 25, 2020 at 7:48 AM Segher Boessenkool
<segher@kernel.crashing.org> wrote:
>
> Hi!
>
> On Fri, Jan 24, 2020 at 10:40:47PM -0500, Jeffrey Walton wrote:
> > On 64-bit platforms _LP64 and __LP64__ are defined.
>
> That's not quite true.  Those macros mean that "long int" as well as
> pointers are 64 bits, for the selected ABI.
>
> > Do 128-bit machines use the macros _LP128 and __LP128__?
>
> There is __SIZEOF_INT128__, that may be what you are looking for.

Thanks Segher.

Yes, I'm aware of __SIZEOF_INT128__. It is very helpful when available.

I was more interested in ILP128 data model, and its possible use in
the higher end computers. (Does that model even exist?)

Jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-26  3:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-25  3:41 128-bit data model macros Jeffrey Walton
2020-01-25 12:48 ` Segher Boessenkool
2020-01-26  3:07   ` Jeffrey Walton

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).