aboutsummaryrefslogtreecommitdiffstats
path: root/endian.h
blob: ce8e5ff47184db895e9c6c1d73b1b191426a301c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* endian.h */
/*****************************************************************************/
/* AS-Portierung                                                             */
/*                                                                           */
/* Little/Big-Endian-Routinen                                                */
/*                                                                           */
/* Historie: 30. 5.1996 Grundsteinlegung                                     */
/*            6. 7.1997 Dec32BlankString dazu                                */
/*                                                                           */
/*****************************************************************************/

extern Boolean BigEndian;

extern char *Integ16Format,*Integ32Format,*Integ64Format;
extern char *IntegerFormat,*LongIntFormat,*QuadIntFormat;
extern char *LargeIntFormat;


extern void WSwap(void *Field, int Cnt);

extern void DSwap(void *Field, int Cnt);

extern void QSwap(void *Field, int Cnt);

extern void DWSwap(void *Field, int Cnt);

extern void QWSwap(void *Field, int Cnt);


extern void Double_2_ieee4(Double inp, Byte *dest, Boolean NeedsBig);

extern void Double_2_ieee8(Double inp, Byte *dest, Boolean NeedsBig);

extern void Double_2_ieee10(Double inp, Byte *dest, Boolean NeedsBig);


extern Boolean Read2(FILE *file, void *Ptr);

extern Boolean Read4(FILE *file, void *Ptr);

extern Boolean Read8(FILE *file, void *Ptr);


extern Boolean Write2(FILE *file, void *Ptr);

extern Boolean Write4(FILE *file, void *Ptr);

extern Boolean Write8(FILE *file, void *Ptr);


extern char *Dec32BlankString(LongInt number, int Stellen);


extern void endian_init(void);