From owner-freebsd-current@freebsd.org Fri Aug 10 23:41:21 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F9121078942 for ; Fri, 10 Aug 2018 23:41:21 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E65A38133C for ; Fri, 10 Aug 2018 23:41:20 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22a.google.com with SMTP id d9-v6so4887699itf.2 for ; Fri, 10 Aug 2018 16:41:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=6zndP8DfmoGlaC4G3veQKHhGFUnd8X9EWZJLiWOdKow=; b=VGLziroBER9or60PMLFulcIG5tQF52GqnDUyUtV5YOG9As0QRoZBe4Id8aWvU373n2 Yen7v0OIa9wiWPKpG4W79FUHeEkMIlzUmhfygLgQ1/Ii45ggCy6k4U3c/ltgvgHv7fi/ 60Ivm41TFEb5YugW38jFRi6ZZbg65uT4sIz4vJ3But0+LmBwfxGma56SskefOtqM8RqQ QUf18fPMbMDHkJ8zjD4zaLfsmgW9J4P02IONeZofZYPmAATHGAs91yUClmT5LaDJAtX3 nzYx7998MiSJ/U7B3PfJsxUKW6wRyh1xMzEJJayLx0H5P7yW/ZOMHps3ALAgVbdumDW2 Q1Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=6zndP8DfmoGlaC4G3veQKHhGFUnd8X9EWZJLiWOdKow=; b=G03q3RFLVx+ATVL8Tl0gupkcdp+7WhN0m3ujE6T/cgUzsL6vNeivbk1GUHwetgBFci oHgF5VDeYN5Rd2/bs8GL310IRCt0Kxsn0Uuh3UJnJxHVscANYkKQWbA1PFZTKnD9w+IM STF8RAQ3vJrBvNqLA75BjuzrcPEAmyaavCVH2xfrnoR0hMB5JyHBPT2Q3/YxPJfvmMSi kC3rmmuhET3Ss5xZ9eMEzMfVidQ6nnDDv5rbB6aP4JqZs8BSz2VtdY31bko1jDZQ0J9v n7Vht7m91jVrMyNjh4r5FP74B0Tzzp/3MoyLnadN5aRRrgTZIYTyJXnbNer3gF4ppYr7 gQPg== X-Gm-Message-State: AOUpUlELMnZJA3M9DLzN5Th4Pd5Ry+lj0BYevKKKlsu13t7Ux29PnDuO zg+C3t8QvlpS2Y/r3tjy8PyxM93eXVc8TltaMil4Rw== X-Google-Smtp-Source: AA+uWPwnaPS5SkWdXSCcsEt3F9/oVmT5y79y5boOcL3zLczxaA9aKLz/4dqC3zm0KTQURBY6j4l5fXS2Kt1GXDguyqk= X-Received: by 2002:a24:4f52:: with SMTP id c79-v6mr3922725itb.36.1533944480172; Fri, 10 Aug 2018 16:41:20 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 2002:a4f:381a:0:0:0:0:0 with HTTP; Fri, 10 Aug 2018 16:41:19 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:1052:acc7:f9de:2b6d] In-Reply-To: <20180811073036.0971575d.freebsd.ed.lists@sumeritec.com> References: <20180810082813.3a165d2b.freebsd.ed.lists@sumeritec.com> <20180810135149.6a95b233.freebsd.ed.lists@sumeritec.com> <20180811073036.0971575d.freebsd.ed.lists@sumeritec.com> From: Warner Losh Date: Fri, 10 Aug 2018 17:41:19 -0600 X-Google-Sender-Auth: oPgUEYPEGzYxqaQvoyBXlYrEzmg Message-ID: Subject: Re: #includes and #defined To: Erich Dollansky Cc: blubee blubeeme , FreeBSD current Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2018 23:41:21 -0000 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 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 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