mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@dm.cobaltmicro.com>
To: cpg@aladdin.de
Cc: torvalds@transmeta.com, linux-kernel@vger.rutgers.edu, cpg@aladdin.de
Subject: Re: 2.1.101 warnings on alpha (patch)
Date: Fri, 15 May 1998 07:51:34 -0700	[thread overview]
Message-ID: <199805151451.HAA01712@dm.cobaltmicro.com> (raw)
In-Reply-To: <199805151156.NAA20899@punt.aladdin.de> (message from Christian Groessler on Fri, 15 May 1998 13:56:07 +0200)

   Date: 	Fri, 15 May 1998 13:56:07 +0200
   From: Christian Groessler <cpg@aladdin.de>

   How does one check whether the host is 64bitty?  Like in the above
   "#if" or is there another (standard) way?

Unfortunately there is no failsafe way.  This is because as a cross
compiler gcc from 32-->64 bit does not get things like:

#if ((~0UL)==0xffffffff)
    ... 32bit version ...
#else
    ... 64bit version ...
#endif

correct at all.  I think it should be in an asm header file
personally, but if you notice the check for 64-bit is often done as:

#if defined(__sparc_v9__) || defined(__alpha__)
#endif

which is pretty unclean and should be fixed up.  But at the moment
there is no other reliable way to check it.

Later,
David S. Miller
davem@dm.cobaltmicro.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

           reply	other threads:[~1998-05-15 14:48 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <199805151156.NAA20899@punt.aladdin.de>]

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=199805151451.HAA01712@dm.cobaltmicro.com \
    --to=davem@dm.cobaltmicro.com \
    --cc=cpg@aladdin.de \
    --cc=linux-kernel@vger.rutgers.edu \
    --cc=torvalds@transmeta.com \
    /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

all inboxes | Powered by JetHome®