[svn:parrot] r47046 - branches/ops_massacre/examples/benchmarks
plobsing at svn.parrot.org
plobsing at svn.parrot.org
Thu May 27 04:23:01 UTC 2010
Author: plobsing
Date: Thu May 27 04:23:01 2010
New Revision: 47046
URL: https://trac.parrot.org/parrot/changeset/47046
Log:
fix examples tests
Modified:
branches/ops_massacre/examples/benchmarks/primes.pasm
branches/ops_massacre/examples/benchmarks/primes_i.pasm
Modified: branches/ops_massacre/examples/benchmarks/primes.pasm
==============================================================================
--- branches/ops_massacre/examples/benchmarks/primes.pasm Thu May 27 04:12:14 2010 (r47045)
+++ branches/ops_massacre/examples/benchmarks/primes.pasm Thu May 27 04:23:01 2010 (r47046)
@@ -42,6 +42,7 @@
div P4, P1, 2
# Check if P3 is a factor of P1
LOOP:
+.loadlib 'math_ops' # cmod is a dynop
cmod P5, P1, P3
if P5, OK
Modified: branches/ops_massacre/examples/benchmarks/primes_i.pasm
==============================================================================
--- branches/ops_massacre/examples/benchmarks/primes_i.pasm Thu May 27 04:12:14 2010 (r47045)
+++ branches/ops_massacre/examples/benchmarks/primes_i.pasm Thu May 27 04:23:01 2010 (r47046)
@@ -30,6 +30,7 @@
set I3, 2
div I4, I1, 2
LOOP: # Check if I3 is a factor of I1
+.loadlib 'math_ops' # cmod is a dynop
cmod I5, I1, I3
if I5, OK
# We've found a factor, so it can't be a prime and
More information about the parrot-commits
mailing list