[GRASS5] Re: [GRASSLIST:1899] ERROR in read/write portable short
Paul Kelly
paul-grass at stjohnspoint.co.uk
Thu Nov 27 08:22:34 EST 2003
On Thu, 27 Nov 2003, Radim Blazek wrote:
> Paul, you have 5.7 compiled on some non intel platforms, can you send us your
> portable.h files for those machines also?
Here is what I have for IRIX (MIPS processor) though it is a good few
weeks now since I re-compiled 5.7:
/* Architecture: mips-sgi-irix6.2 */
/* Native machine sizes */
#define NATIVE_DOUBLE 8
#define NATIVE_FLOAT 4
#define NATIVE_LONG 4
#define NATIVE_INT 4
#define NATIVE_SHORT 2
#define NATIVE_CHAR 1
/* Native machine byte orders */
#define DOUBLE_ORDER 1
#define FLOAT_ORDER 1
#define LONG_ORDER 1
#define INT_ORDER 1
#define SHORT_ORDER 1
/* Translation matrices from big endian to native */
/* Double format: */
static int dbl_cnvrt[] = {0, 1, 2, 3, 4, 5, 6, 7};
/* Float format : */
static int flt_cnvrt[] = {0, 1, 2, 3};
/* Long format : */
static int lng_cnvrt[] = {0, 1, 2, 3};
/* Int format : */
static int int_cnvrt[] = {0, 1, 2, 3};
/* Short format : */
static int shrt_cnvrt[] = {0, 1};
More information about the grass-dev
mailing list