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?


#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
< #elif defined(__i386__) || defined(__alpha__)

> #elif defined(__i386__) || defined(__alpha__) || defined(__ia64) ||
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more

Boost list run by bdawes at, gregod at, cpdaniel at, john at