Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Revert "Add IS-NAN-OR-INF helper sub"
Turns out we don't need it after all.  Just use:
  nqp::istype(val,Num) && nqp::isnanorinf(val)
That should give better performance
  • Loading branch information
lizmat committed Jan 12, 2015
1 parent 495bc53 commit 8ceebf5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/core/operators.pm
Expand Up @@ -353,13 +353,4 @@ sub infix:<andthen>(*@a) {
$current;
}

sub IS-NAN-OR-INF(\val) {
#?if !parrot
nqp::istype(val, Num) && nqp::isnanorinf(val);
#?endif
#?if parrot
nqp::isnanorinf(val);
#?endif
}

# vim: ft=perl6 expandtab sw=4

0 comments on commit 8ceebf5

Please sign in to comment.