~ubuntu-branches/ubuntu/precise/ghc/precise

« back to all changes in this revision

Viewing changes to rts/StgPrimFloat.h

  • Committer: Bazaar Package Importer
  • Author(s): Joachim Breitner
  • Date: 2011-01-17 12:49:24 UTC
  • Revision ID: james.westby@ubuntu.com-20110117124924-do1pym1jlf5o636m
Tags: upstream-7.0.1
ImportĀ upstreamĀ versionĀ 7.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -----------------------------------------------------------------------------
 
2
 *
 
3
 * (c) The GHC Team, 1998-2009
 
4
 *
 
5
 * Primitive floating-point operations
 
6
 *
 
7
 * ---------------------------------------------------------------------------*/
 
8
 
 
9
#ifndef STGPRIMFLOAT_H
 
10
#define STGPRIMFLOAT_H
 
11
 
 
12
#include "BeginPrivate.h"
 
13
 
 
14
/* grimy low-level support functions defined in StgPrimFloat.c */
 
15
void      __decodeDouble_2Int (I_ *man_sign, W_ *man_high, W_ *man_low, I_ *exp, StgDouble dbl);
 
16
void      __decodeFloat_Int (I_ *man, I_ *exp, StgFloat flt);
 
17
StgDouble __2Int_encodeDouble (I_ j_high, I_ j_low, I_ e);
 
18
StgDouble __word_encodeDouble (W_ j, I_ e);
 
19
StgFloat  __word_encodeFloat (W_ j, I_ e);
 
20
 
 
21
// __int_encodeDouble and __int_encodeFloat are public, declared in 
 
22
// includes/rts/PrimFloat.h.
 
23
 
 
24
#include "EndPrivate.h"
 
25
 
 
26
#endif /* STGPRIMFLOAT_H */