mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
use a shift to divide by 2 in collatz
This commit is contained in:
parent
4999d6ebf0
commit
4ce295adad
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user