Skip to content

Commit

Permalink
M array/polyarray.go
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Nov 11, 2020
1 parent edfc7fa commit 37934e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions array/polyarray.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (m *PolyArray) Get(i int32) int32 {
i = i & segSizeMask
x := float64(i)

bm := polyBitmap & bitmap.RightMasks[i>>4]
bm := polyBitmap & bitmap.Mask[i>>4]
polyI := int(rank) + bits.OnesCount64(bm)

// evalpoly2(poly, x)
Expand All @@ -103,7 +103,7 @@ func (m *PolyArray) Get(i int32) int32 {
d := m.Residuals[ibit>>6]
d = d >> uint(ibit&63)

return v + int32(d&bitmap.RightMasks[residualWidth])
return v + int32(d&bitmap.Mask[residualWidth])
}

// Len returns number of elements.
Expand Down

0 comments on commit 37934e7

Please sign in to comment.