[GHC] #3293: Implement shiftLInteger and shiftRInteger
GHC
trac at galois.com
Wed Jun 10 16:43:10 EDT 2009
#3293: Implement shiftLInteger and shiftRInteger
-------------------------------+--------------------------------------------
Reporter: igloo | Owner:
Type: task | Status: new
Priority: normal | Milestone: 6.12.1
Component: libraries/base | Version: 6.10.2
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-------------------------------+--------------------------------------------
Currently `shift` for `Integer` (in `Data.Bits`) is defined in terms of
`(*)`, `div` and `^`.
Instead, `integer-*` should export `shiftLInteger` and `shiftRInteger`,
which can be more efficient.
We should do this after the builtin-primop/FFI-imported-primop stuff is
worked out, so that we can use a suitable GMP function for it.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3293>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list