stg/Prim.h: drop redundant #ifdef
[ghc.git] / includes / stg / Prim.h
1 /* ----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 2014-2014
4 *
5 * Declarations for C fallback primitives implemented by 'ghc-prim' package.
6 *
7 * Do not #include this file directly: #include "Rts.h" instead.
8 *
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
11 *
12 * -------------------------------------------------------------------------- */
13
14 #ifndef PRIM_H
15 #define PRIM_H
16
17 /* libraries/ghc-prim/cbits/bswap.c */
18 StgWord16 hs_bswap16(StgWord16 x);
19 StgWord32 hs_bswap32(StgWord32 x);
20 StgWord64 hs_bswap64(StgWord64 x);
21
22 /* TODO: longlong.c */
23
24 /* libraries/ghc-prim/cbits/popcnt.c */
25 StgWord hs_popcnt8(StgWord x);
26 StgWord hs_popcnt16(StgWord x);
27 StgWord hs_popcnt32(StgWord x);
28 StgWord hs_popcnt64(StgWord64 x);
29 StgWord hs_popcnt(StgWord x);
30
31 /* libraries/ghc-prim/cbits/word2float.c */
32 StgFloat hs_word2float32(StgWord x);
33 StgDouble hs_word2float64(StgWord x);
34
35 #endif /* PRIM_H */