Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2003-03-10 18:53:51


If evaluating the output of the code below counts as a
quick-and-easy-and-conclusive test the result is that the Itanium2 must be
BOOST_LITTLE_ENDIAN like the i386 and Alpha lines. I.e. my patch needs to be
revised (see below).

I am happy to report that Boost.Python works both with gcc 2.96 and Intel 7.0
on the Itanium2. The patch below is the only modification required. Would it be
OK to check this into the RC_1_30_0 branch?

Thanks,
        Ralf

#include <iostream>

int main()
{
  double x = 1.23456789e12;
  unsigned char* c = (unsigned char*) &x;
  for (int i=0;i<sizeof(double);i++) {
    std::cout << unsigned(c[i]) << std::endl;
  }
  return 0;
}

Index: limits.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/detail/limits.hpp,v
retrieving revision 1.21
diff -r1.21 limits.hpp
54c54
< #elif defined(__i386__) || defined(__alpha__)

---
> #elif defined(__i386__) || defined(__alpha__) || defined(__ia64) ||
defined(__ia64__)
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk