[project @ 1998-12-02 13:17:09 by simonm]
[ghc-hetmet.git] / ghc / lib / misc / cbits / ByteOps.h
1 #ifndef BYTEOPS_H
2 #define BYTEOPS_H
3
4 /* "Native" support */
5 /* sigh again: without these some (notably "float") willnae work */
6 I_ long2bytes__   (long,   unsigned char *);
7 I_ int2bytes__    (int,    unsigned char *);
8 I_ short2bytes__  (short,  unsigned char *);
9 I_ float2bytes__  (float,  unsigned char *);
10 I_ double2bytes__ (double, unsigned char *);
11
12 I_ bytes2long__   (P_, I_ *);
13 I_ bytes2int__    (P_, I_ *);
14 I_ bytes2short__  (P_, I_ *);
15 I_ bytes2float__  (P_, StgFloat *);
16 I_ bytes2double__ (P_, StgDouble *);
17
18 #endif