Skip to content

Commit

Permalink
Fix incorrect Note reference (#6217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth MacKenzie authored Jun 18, 2024
1 parent 623c715 commit 23edce1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions plutus-core/plutus-core/src/PlutusCore/Bitwise.hs
Original file line number Diff line number Diff line change
Expand Up @@ -600,13 +600,12 @@ replicateByte len w8
{- Note [Shift and rotation implementation]
Both shifts and rotations work similarly: they effectively impose a 'write
offset' to bits in the data argument, then write those bits to the result
with this offset applied. The difference between them is in what should be
done if the resulting offset index would fall out of bounds: shifts just
discard the data (and fill whatever remains with zeroes), while rotations
'wrap around' modularly. This operation is bit parallel by definition, thus
theoretically making it amenable to the techniques described in Note [Bit
parallelism and loop sectioning].
offset' to bits in the data argument, then write those bits to the result with
this offset applied. The difference between them is in what should be done if
the resulting offset index would fall out of bounds: shifts just discard the
data (and fill whatever remains with zeroes), while rotations 'wrap around'
modularly. This operation is bit parallel by definition, thus theoretically
making it amenable to the techniques described in Note [Loop sectioning].
However, the naive way of doing this runs into a problem: the byte ordering
on Tier 1 platforms inside `Word64` means that consecutive bit indexes
Expand Down

0 comments on commit 23edce1

Please sign in to comment.