Skip to content

Commit

Permalink
fixing cost comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Nov 19, 2024
1 parent eb50ab4 commit 367d320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/shared/src/main/scala/sigma/ast/methods.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1845,9 +1845,9 @@ case object SGlobalMethods extends MonoTypeMethods {
"Decode a number from big endian bytes.",
ArgInfo("first", "Bytes which are big-endian encoded number."))

private lazy val EncodeNBitsCost = FixedCost(JitCost(25)) // the same cost for nbits encoding and decoding
private lazy val EncodeNBitsCost = FixedCost(JitCost(25)) // cost for nbits encoding

private lazy val DecodeNBitsCost = FixedCost(JitCost(50)) // the same cost for nbits encoding and decoding
private lazy val DecodeNBitsCost = FixedCost(JitCost(50)) // cost for nbits decoding

lazy val encodeNBitsMethod: SMethod = SMethod(
this, "encodeNbits", SFunc(Array(SGlobal, SBigInt), SLong), 6, EncodeNBitsCost)
Expand Down

0 comments on commit 367d320

Please sign in to comment.