[svn:parrot] r40692 - trunk/examples/benchmarks

chromatic at svn.parrot.org chromatic at svn.parrot.org
Fri Aug 21 19:20:08 UTC 2009


Author: chromatic
Date: Fri Aug 21 19:20:07 2009
New Revision: 40692
URL: https://trac.parrot.org/parrot/changeset/40692

Log:
[examples] Added a minor optimization to the primes.pasm benchmark to avoid one
unnecessary loop.

Modified:
   trunk/examples/benchmarks/primes.pasm

Modified: trunk/examples/benchmarks/primes.pasm
==============================================================================
--- trunk/examples/benchmarks/primes.pasm	Fri Aug 21 10:15:58 2009	(r40691)
+++ trunk/examples/benchmarks/primes.pasm	Fri Aug 21 19:20:07 2009	(r40692)
@@ -48,7 +48,7 @@
     branch  NEXT
 OK:
     inc     P3
-    le      P3, P4, LOOP
+    lt      P3, P4, LOOP
     # We haven't found a factor so it must be a prime
     inc     P6
     set     P7, P1


More information about the parrot-commits mailing list