From 47488950fa9d8930b1fd1cf83fc20940b6d31532 Mon Sep 17 00:00:00 2001 From: sof Date: Sat, 15 Aug 1998 17:58:14 +0000 Subject: [PATCH] [project @ 1998-08-15 17:56:59 by sof] use shiftRL# instead of shiftRA#, since the latter primop is no more. --- ghc/compiler/basicTypes/Unique.lhs | 2 +- ghc/compiler/utils/UniqFM.lhs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/basicTypes/Unique.lhs b/ghc/compiler/basicTypes/Unique.lhs index 07116c7..638f888 100644 --- a/ghc/compiler/basicTypes/Unique.lhs +++ b/ghc/compiler/basicTypes/Unique.lhs @@ -313,7 +313,7 @@ unpkUnique (MkUnique u) in (tag, i) where - shiftr x y = shiftRA# x y + shiftr x y = shiftRL# x y \end{code} diff --git a/ghc/compiler/utils/UniqFM.lhs b/ghc/compiler/utils/UniqFM.lhs index 64ceff4..2d78944 100644 --- a/ghc/compiler/utils/UniqFM.lhs +++ b/ghc/compiler/utils/UniqFM.lhs @@ -799,7 +799,7 @@ shiftR_ :: FAST_INT -> FAST_INT -> FAST_INT shiftL_ n p = word2Int#((int2Word# n) `shiftL#` p) shiftR_ n p = word2Int#((int2Word# n) `shiftr` p) where - shiftr x y = shiftRA# x y + shiftr x y = shiftRL# x y #else {- not GHC -} shiftL_ n p = n * (2 ^ p) -- 1.7.10.4