Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2018 17:41:19 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Erich Dollansky <freebsd.ed.lists@sumeritec.com>
Cc:        blubee blubeeme <gurenchan@gmail.com>, FreeBSD current <freebsd-current@freebsd.org>
Subject:   Re: #includes and #defined
Message-ID:  <CANCZdfoH1qwSrQqz%2BpS4%2BDL5j6g9BUnZio7vmV4yqKSF52yB=g@mail.gmail.com>
In-Reply-To: <20180811073036.0971575d.freebsd.ed.lists@sumeritec.com>
References:  <CALM2mEnRxQKcgmpMhg0yVX0iF9JhFPyJKZ6BOrvT7kQTas9jEA@mail.gmail.com> <20180810082813.3a165d2b.freebsd.ed.lists@sumeritec.com> <CALM2mE==pj2%2B0iE5hTkDLAruAU8DFobpdnQDCLMhTV0J04sWqA@mail.gmail.com> <20180810135149.6a95b233.freebsd.ed.lists@sumeritec.com> <CANCZdfqXYKU=qq=YJy3CcVu0fDMdfBJYwKR2LL-5Cwoq%2BbB-kA@mail.gmail.com> <20180811073036.0971575d.freebsd.ed.lists@sumeritec.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 10, 2018 at 5:30 PM, Erich Dollansky <
freebsd.ed.lists@sumeritec.com> wrote:

> Hi,
>
> On Fri, 10 Aug 2018 07:53:19 -0600
> Warner Losh <imp@bsdimp.com> wrote:
>
> > On Thu, Aug 9, 2018 at 11:51 PM, Erich Dollansky <
> > freebsd.ed.lists@sumeritec.com> wrote:
> >
> > > On Fri, 10 Aug 2018 12:40:48 +0800
> > > blubee blubeeme <gurenchan@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoH1qwSrQqz%2BpS4%2BDL5j6g9BUnZio7vmV4yqKSF52yB=g>