[commit: ghc] master: stg/Prim.h: drop redundant #ifdef (8e64151)

git at git.haskell.org git at git.haskell.org
Mon Aug 11 18:18:53 UTC 2014


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/8e64151bc43075f910205a14f1c06966ad37ba0c/ghc

>---------------------------------------------------------------

commit 8e64151bc43075f910205a14f1c06966ad37ba0c
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Mon Aug 11 21:18:36 2014 +0300

    stg/Prim.h: drop redundant #ifdef
    
    Summary:
    Noticed by Herbert Valerio Riedel
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>
    
    Test Plan: build test
    
    Reviewers: simonmar, austin, hvr
    
    Reviewed By: hvr
    
    Subscribers: rwbarton, phaskell, simonmar, relrod, ezyang, carter
    
    Differential Revision: https://phabricator.haskell.org/D143


>---------------------------------------------------------------

8e64151bc43075f910205a14f1c06966ad37ba0c
 includes/stg/Prim.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/includes/stg/Prim.h b/includes/stg/Prim.h
index 7d94d18..9fdfd3c 100644
--- a/includes/stg/Prim.h
+++ b/includes/stg/Prim.h
@@ -26,11 +26,7 @@ StgWord hs_popcnt8(StgWord x);
 StgWord hs_popcnt16(StgWord x);
 StgWord hs_popcnt32(StgWord x);
 StgWord hs_popcnt64(StgWord64 x);
-#ifdef i386_HOST_ARCH
 StgWord hs_popcnt(StgWord x);
-#else
-StgWord hs_popcnt(StgWord x);
-#endif
 
 /* libraries/ghc-prim/cbits/word2float.c */
 StgFloat hs_word2float32(StgWord x);



More information about the ghc-commits mailing list