Skip to content

Commit

Permalink
inline fpow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikerlandson committed Dec 29, 2023
1 parent b0dacc2 commit 6d08861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala-3/spire/std/int.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ trait IntIsNRoot extends NRoot[Int] {
}

def log(a: Int): Int = Math.log(a.toDouble).toInt
def fpow(a: Int, b: Int): Int = Math.pow(a, b).toInt
inline def fpow(a: Int, b: Int): Int = Math.pow(a, b).toInt
}

trait IntOrder extends Order[Int] {
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/scala-3/spire/std/long.scala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ trait LongIsNRoot extends NRoot[Long] {
else findnroot(0, 1L << ((65 - n) / n))
}
def log(a: Long): Long = Math.log(a.toDouble).toLong
def fpow(a: Long, b: Long): Long = spire.math.pow(a, b) // xyz
inline def fpow(a: Long, b: Long): Long = spire.math.pow(a, b) // xyz
}

trait LongOrder extends Order[Long] {
Expand Down

0 comments on commit 6d08861

Please sign in to comment.