GRASS Programmer's Manual
6.4.2(2012)
|
00001 /* Architecture: i386-pc-mingw32msvc */ 00002 00003 /* Native machine sizes */ 00004 #define NATIVE_DOUBLE 8 00005 #define NATIVE_FLOAT 4 00006 #define NATIVE_LONG 4 00007 #define NATIVE_INT 4 00008 #define NATIVE_SHORT 2 00009 #define NATIVE_CHAR 1 00010 00011 /* Native machine byte orders */ 00012 #define DOUBLE_ORDER 0 00013 #define FLOAT_ORDER 0 00014 #define LONG_ORDER 0 00015 #define INT_ORDER 0 00016 #define SHORT_ORDER 0 00017 00018 00019 /* Translation matrices from big endian to native */ 00020 00021 /* Double format: */ 00022 static int dbl_cnvrt[] = { 7, 6, 5, 4, 3, 2, 1, 0 }; 00023 00024 /* Float format : */ 00025 static int flt_cnvrt[] = { 3, 2, 1, 0 }; 00026 00027 /* Long format : */ 00028 static int lng_cnvrt[] = { 3, 2, 1, 0 }; 00029 00030 /* Int format : */ 00031 static int int_cnvrt[] = { 3, 2, 1, 0 }; 00032 00033 /* Short format : */ 00034 static int shrt_cnvrt[] = { 1, 0 };