From 4ce295adadc67f66b01b1841db394f60dda3956b Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 12 Apr 2016 13:24:57 -0400 Subject: use a shift to divide by 2 in collatz --- test/collatz.ssa | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/collatz.ssa') diff --git a/test/collatz.ssa b/test/collatz.ssa index 0a593b1..73e16ea 100644 --- a/test/collatz.ssa +++ b/test/collatz.ssa @@ -29,7 +29,7 @@ function $test() { %n2 =w add %n1, 1 jmp @cloop @even - %n3 =w div %n0, 2 + %n3 =w shr %n0, 1 jmp @cloop @getmemo # get the count for n0 in mem %n0l =l extsw %n0 -- cgit 1.4.1