Skip to content

Commit

Permalink
chore: Switch to using new ops
Browse files Browse the repository at this point in the history
  • Loading branch information
spotandjake committed Dec 31, 2023
1 parent bf319ea commit d5f4600
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions stdlib/int64.gr
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,6 @@ provide let popcnt = (value: Int64) => {

// Exponentiation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring special path for int^int
let rec expBySquaring = (y, x, n) => {
let (==) = eq
let (*) = mul
let (%) = mod
let (/) = div
let (-) = sub
if (n == 0L) {
1L
} else if (n == 1L) {
Expand All @@ -534,9 +529,6 @@ let rec expBySquaring = (y, x, n) => {
* @since v0.6.0
*/
provide let (**) = (base, power) => {
let (<) = lt
let (/) = div
let (*) = mul
if (power < 0L) return expBySquaring(1L, 1L / base, power * -1L)
else return expBySquaring(1L, base, power)
}

0 comments on commit d5f4600

Please sign in to comment.