x86-64 C/C++ compiler predefines macro__LP64__ while x32 C/C++ compiler predefines macro __ILP32__. --001a11c233d24c5ef505280f90c9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr"><br> Le=C2=A029 d=C3=A9c. 2015 20:31, "Erik de Castro Lopo" <<a href=3D"mailto:mle%2Bla at mega-nerd.com">mle+la at mega-nerd.com</a>> a =C3=A9crit=C2=A0:<br> ><br> > Rafa=C3=ABl Carr=C3=A9 wrote:<br> ><br> > > That would need a special case for Linux x32 which is x86_64 with 32<br> > > bits pointers<br> ><br> > It won't be wrong for x32, just sub-optimal.<br> ><br> > Please feel free to suggest a way to detect x32.</p> <p dir=3D"ltr">From <a href=3D"https://sourceware.org/glibc/wiki/x32">https://sourceware.org/glibc/wiki/x32</a></p> <p dir=3D"ltr">x86-64 C/C++ compiler predefines macro<tt>__LP64__</tt>=C2=A0while x32 C/C++ compiler predefines macro=C2=A0<tt>__ILP32__</tt>.</p> --001a11c233d24c5ef505280f90c9--