Boost logo

Boost :

From: Dan Gohman (djg_at_[hidden])
Date: 2003-01-23 11:49:27


The recent change to boost/cstdint.hpp for Cray systems is not
appropriate for the Cray X1. It has a 16-bit short type, however there
are performance penalties associated with it.

The following patch for cstdint.hpp sets up the appropriate typedefs for
this platform.

diff -u -r1.29 cstdint.hpp
--- boost/cstdint.hpp 22 Jan 2003 12:12:14 -0000 1.29
+++ boost/cstdint.hpp 23 Jan 2003 16:32:04 -0000
@@ -160,7 +160,16 @@
 
 // 16-bit types
-----------------------------------------------------------//
 
-# if USHRT_MAX == 0xffff
+# if defined(__crayx1)
+ // The Cray X1 has a 16-bit short, however it is not recommend
+ // for use in performance critical code.
+ typedef short int16_t;
+ typedef short int_least16_t;
+ typedef int int_fast16_t;
+ typedef unsigned short uint16_t;
+ typedef unsigned short uint_least16_t;
+ typedef unsigned int uint_fast16_t;
+# elif USHRT_MAX == 0xffff
      typedef short int16_t;
      typedef short int_least16_t;
      typedef short int_fast16_t;


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