df76013a2b8185898f16fed057dc1d464406fa27
[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__   PROTO((long,  unsigned char *));
7 I_ int2bytes__    PROTO((int,   unsigned char *));
8 I_ short2bytes__  PROTO((short, unsigned char *));
9 I_ float2bytes__  PROTO((float, unsigned char *));
10 I_ double2bytes__ PROTO((double, unsigned char *));
11
12 I_ bytes2long__   PROTO((P_, I_ *));
13 I_ bytes2int__    PROTO((P_, I_ *));
14 I_ bytes2short__  PROTO((P_, I_ *));
15 I_ bytes2float__  PROTO((P_, StgFloat *));
16 I_ bytes2double__ PROTO((P_, StgDouble *));
17
18 #endif