Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use new nqp::pow_I opcode
  • Loading branch information
moritz committed Nov 11, 2011
1 parent b147776 commit 3d97eda
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/Int.pm
Expand Up @@ -125,11 +125,7 @@ multi infix:<%>(int $a, int $b) returns int {
}

multi infix:<**>(Int:D \$a, Int:D \$b) {
if $b >= 0 {
nqp::p6box_i(nqp::pow_n(nqp::unbox_i($a), nqp::unbox_i($b)))
} else {
nqp::p6box_n(nqp::pow_n(nqp::unbox_i($a), nqp::unbox_i($b)))
}
nqp::pow_I(nqp::p6decont($a), nqp::p6decont($b), Num);
}

multi infix:<lcm>(Int:D \$a, Int:D \$b) returns Int {
Expand Down

0 comments on commit 3d97eda

Please sign in to comment.