Re: #includes and #defined

From: Warner Losh <imp_at_bsdimp.com>
Date: Fri, 10 Aug 2018 17:41:19 -0600
On Fri, Aug 10, 2018 at 5:30 PM, Erich Dollansky <
freebsd.ed.lists_at_sumeritec.com> wrote:

> Hi,
>
> On Fri, 10 Aug 2018 07:53:19 -0600
> Warner Losh <imp_at_bsdimp.com> wrote:
>
> > On Thu, Aug 9, 2018 at 11:51 PM, Erich Dollansky <
> > freebsd.ed.lists_at_sumeritec.com> wrote:
> >
> > > On Fri, 10 Aug 2018 12:40:48 +0800
> > > blubee blubeeme <gurenchan_at_gmail.com> wrote:
> > >
> > > >
> > > > What about the architecture name is it recommended to use x86_64
> > > > or amd64?
> > >
> > > my clang reports on an Intel CPU:
> > >
> > > #define __amd64 1
> > > #define __amd64__ 1
> > > #define __x86_64 1
> > > #define __x86_64__ 1
> > >
> > > as defined.
> > >
> > > It reports
> > >
> > > #define __aarch64__ 1
> > >
> > > on an 64 bit ARM CPU.
> > >
> >
> > 'man 7 arch' will tell you these things:
>
> better late than never.
>
> I still trust a compiler more than the documentation.
>

The compiler confirms the documentation :)

Warner
Received on Fri Aug 10 2018 - 21:41:21 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC