Skip to content

Commit

Permalink
Update writeBits use in NQueens
Browse files Browse the repository at this point in the history
  • Loading branch information
kozross committed Jul 19, 2024
1 parent 67b577e commit 7bd6e70
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plutus-benchmark/bitwise/src/PlutusBenchmark/NQueens.hs
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
-- editorconfig-checker-disable-file
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeApplications #-}

module PlutusBenchmark.NQueens (nqueens) where

import PlutusTx.Builtins (complementByteString, findFirstSetBit, orByteString, replicateByte,
shiftByteString, writeBits)
import PlutusTx.Prelude

-- Based on Qiu, Zongyan (February 2002). "Bit-vector encoding of n-queen problem". ACM SIGPLAN Notices. 37 (2): 68–70
Expand Down Expand Up @@ -76,4 +73,4 @@ selectByteString which bs

{-# INLINE writeBit #-}
writeBit :: BuiltinByteString -> Integer -> Bool -> BuiltinByteString
writeBit bs i b = writeBits bs . toBuiltin @[(Integer, Bool)] $ [(i, b)]
writeBit bs i b = writeBits bs [i] [b]

0 comments on commit 7bd6e70

Please sign in to comment.