StgPrimFloat.h 781 Bytes
Newer Older
Simon Marlow's avatar
Simon Marlow committed
1
2
3
4
5
6
7
8
9
10
11
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-2009
 *
 * Primitive floating-point operations
 *
 * ---------------------------------------------------------------------------*/

#ifndef STGPRIMFLOAT_H
#define STGPRIMFLOAT_H

12
#include "BeginPrivate.h"
13

Simon Marlow's avatar
Simon Marlow committed
14
/* grimy low-level support functions defined in StgPrimFloat.c */
15
16
17
18
19
void      __decodeDouble_2Int (I_ *man_sign, W_ *man_high, W_ *man_low, I_ *exp, StgDouble dbl);
void      __decodeFloat_Int (I_ *man, I_ *exp, StgFloat flt);
StgDouble __word_encodeDouble (W_ j, I_ e);
StgFloat  __word_encodeFloat (W_ j, I_ e);

20
21
22
// __int_encodeDouble and __int_encodeFloat are public, declared in 
// includes/rts/PrimFloat.h.

23
#include "EndPrivate.h"
Simon Marlow's avatar
Simon Marlow committed
24
25

#endif /* STGPRIMFLOAT_H */