[llvm-commits] CVS: llvm/include/llvm/Support/MathExtras.h

Chris Lattner sabre at nondot.org
Wed Aug 17 16:35:43 PDT 2005


On Wed, 17 Aug 2005, Reid Spencer wrote:
> It generally depends on the compiler in use since the standard
> recommends a size but does not prohibit a compiler from specifying an
> "implementation dependent" size. One of the reasons we don't get
> problems in this area is because we use GCC nearly everywhere and its
> sizes are consistent from platform to platform. HOWEVER, we are also
> currently supporting aCC on HP-UX and the opportunity for supporting
> other compilers in the future exists. Of particular not, I believe this
> code will break on a 64-bit HP-UX machine compiled with aCC where "int"
> is 64-bits

No, this depends on the ABI, not the compiler.  I seriously doubt that int 
is 64-bits on HPUX.  Duraid, do you know?

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/




More information about the llvm-commits mailing list