We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77d8418 commit 962ecc8Copy full SHA for 962ecc8
src/Data/Bit/Internal.hs
@@ -251,14 +251,10 @@ instance MV.MVector U.MVector Bit where
251
pure $ BitMVec 0 n arr
252
253
{-# INLINE basicOverlaps #-}
254
- basicOverlaps (BitMVec i' m' arr1) (BitMVec j' n' arr2) =
+ basicOverlaps (BitMVec i m arr1) (BitMVec j n arr2) =
255
sameMutableByteArray arr1 arr2
256
&& (between i j (j + n) || between j i (i + m))
257
where
258
- i = divWordSize i'
259
- m = nWords (i' + m') - i
260
- j = divWordSize j'
261
- n = nWords (j' + n') - j
262
between x y z = x >= y && x < z
263
264
{-# INLINE basicLength #-}
0 commit comments