ICP  1
vms_convert.h
Go to the documentation of this file.
1 #ifndef ENDIAN_CONVERT
2 #define ENDIAN_CONVERT
3 
4 typedef int fort_int;
5 
6 unsigned short local_to_vax_short(const unsigned short* s);
7 unsigned short vax_to_local_short(const unsigned short* s);
8 unsigned local_to_vax_int(const fort_int* i);
9 unsigned vax_to_local_int(const fort_int* i);
10 
11 void local_to_vax_shorts(unsigned short* sa, const int* n);
12 void vax_to_local_shorts(unsigned short* sa, const int* n);
13 void local_to_vax_ints(fort_int* ia, const fort_int* n);
14 void vax_to_local_ints(fort_int* ia, const fort_int* n);
15 
16 
17 /* these routines return 0 = success, 1 = failure */
18 
19 /* convert an IEEE single float to VAX F FLOAT format */
20 /* int ieee_to_vax_float(float* fp); */
21 
22 /* convert VAX F FLOAT into an IEEE single float */
23 /* int vax_to_ieee_float(float* fp); */
24 
25 /* convert float array val[n] to and from vax float */
26 void vaxf_to_local(float *val, const int *n, int *errcode);
27 void local_to_vaxf(float *val, const int *n, int *errcode);
28 void local_to_ieee_float(float *val, const int *n, int *errcode);
29 void local_to_ieee_double(double *val, const int *n, int *errcode);
30 void ieee_float_to_local(float *val, const int *n, int *errcode);
31 void ieee_double_to_local(double *val, const int *n, int *errcode);
32 
33 
34 #endif /* ENDIAN_CONVERT */
unsigned short vax_to_local_short(const unsigned short *s)
Definition: vms_convert.cpp:46
void ieee_float_to_local(float *val, const int *n, int *errcode)
void vax_to_local_shorts(unsigned short *sa, const int *n)
Definition: vms_convert.cpp:85
void local_to_ieee_float(float *val, const int *n, int *errcode)
unsigned local_to_vax_int(const fort_int *i)
Definition: vms_convert.cpp:55
void local_to_vaxf(float *val, const int *n, int *errcode)
void local_to_vax_ints(fort_int *ia, const fort_int *n)
Definition: vms_convert.cpp:97
void vax_to_local_ints(fort_int *ia, const fort_int *n)
unsigned vax_to_local_int(const fort_int *i)
Definition: vms_convert.cpp:64
void local_to_ieee_double(double *val, const int *n, int *errcode)
void ieee_double_to_local(double *val, const int *n, int *errcode)
void local_to_vax_shorts(unsigned short *sa, const int *n)
Definition: vms_convert.cpp:73
int fort_int
Definition: vms_convert.h:4
void vaxf_to_local(float *val, const int *n, int *errcode)
unsigned short local_to_vax_short(const unsigned short *s)
Definition: vms_convert.cpp:37