36 #if !defined(MIR_SYSDEP_H)
39 #include <sys/types.h>
60 #ifndef MIRIAD_TYPES_DEFINED
61 #define MIRIAD_TYPES_DEFINED 1
78 #if !defined(__cplusplus)
79 #define private static
84 typedef long long int int8;
94 #define FORT_TRUE _btol(1)
95 #define FORT_FALSE _btol(0)
96 #define FORT_LOGICAL(a) (_ltob((&(a))))
100 #define defined_params
109 #ifndef defined_params
110 #if defined(convex) || defined(alpha) || defined(__alpha)
111 # define FORT_TRUE -1
117 #define FORT_LOGICAL(a) ((a) != FORT_FALSE)
121 #define BUFSIZE 16384
142 #ifndef WORDS_BIGENDIAN
143 # if defined (sun) || defined (convex) || defined (mips) || defined(sgi) || defined(hpux)
144 # define WORDS_BIGENDIAN
146 # if defined(PPC) || defined(powerpc) || defined(darwin_ppc)
147 # define WORDS_BIGENDIAN
152 #undef WORDS_BIGENDIAN
155 #ifdef WORDS_BIGENDIAN
156 # define packr_c(a,b,c) memcpy((b),(char *)(a),sizeof(float)*(c))
157 # define unpackr_c(a,b,c) memcpy((char *)(b),(a),sizeof(float)*(c))
158 # define packd_c(a,b,c) memcpy((b),(char *)(a),sizeof(double)*(c))
159 # define unpackd_c(a,b,c) memcpy((char *)(b),(a),sizeof(double)*(c))
160 # define pack32_c(a,b,c) memcpy((b),(char *)(a),sizeof(int)*(c))
161 # define unpack32_c(a,b,c) memcpy((char *)(b),(a),sizeof(int)*(c))
163 void pack16_c(
int *in,
char *out,
int n);
169 void pack16_c(
int *in,
char *out,
int n);
171 void pack32_c(
int *in,
char *out,
int n);
175 void packr_c(
float *in,
char *out,
int n);
176 void unpackr_c(
char *in,
float *out,
int n);
177 void packd_c(
double *in,
char *out,
int n);
178 void unpackd_c(
char *in,
double *out,
int n);
void packd_c(double *in, char *out, int n)
void unpack16_c(char *in, int *out, int n)
void unpackr_c(char *in, float *out, int n)
void unpackd_c(char *in, double *out, int n)
void packr_c(float *in, char *out, int n)
void pack64_c(int8 *in, char *out, int n)
void unpack32_c(char *in, int *out, int n)
void unpack64_c(char *in, int8 *out, int n)
void pack32_c(int *in, char *out, int n)
void pack16_c(int *in, char *out, int n)