Skip to content

Commit

Permalink
Reimplement infix:<div> to use pir::fdiv. tylercurtis++.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Jul 23, 2010
1 parent d1cd713 commit bc3e181
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/core/Int.pm
Expand Up @@ -48,11 +48,7 @@ our multi sub infix:<*>(Int $a, Int $b) {
}

our multi sub infix:<div>(Int $a, Int $b) {
my $result = pir::box__PI(pir::div__III($a, $b));
if ($a * $b).sign < 0 && $result * $b != $a {
$result--;
}
$result;
upgrade_to_num_if_needed(pir::fdiv__NNN($a, $b));
}

our multi sub infix:<%>(Int $a, Int $b) {
Expand Down

0 comments on commit bc3e181

Please sign in to comment.