Skip to content

Implement shiftLInteger and shiftRInteger

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.

Trac metadata
Trac field Value
Version 6.10.2
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component libraries/base
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information