Date: Thu, 6 Sep 2007 11:10:28 -0700 From: Luigi Rizzo <rizzo@icir.org> To: current@freebsd.org Subject: how to tell 64 vs 32 bit architecture ? Message-ID: <20070906111028.A83649@xorpc.icir.org>
next in thread | raw e-mail | index | archive | help
hi, i was wondering what is the proper way to tell a 64 vs 32 bit architecture. I see that some code in sys/ uses ' #ifdef __LP64__ ' but i am not sure if this is generic enough (ie not gcc or FreeBSD specific), and also suitable for userland (i.e. works on linux or other platforms as well). cheers luigi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070906111028.A83649>