Ackermann function: Difference between revisions
→{{header|Risc-V}}: update Risc-V -> RISC-V Assembly
(→With Memoization and Optimization: A(3;1000000)) |
(→{{header|Risc-V}}: update Risc-V -> RISC-V Assembly) |
||
Line 8,243:
Ackermann(3, 4) = 125</pre>
=={{header|
the basic recursive function, because memorization and other improvements would blow the clarity.
<syntaxhighlight lang="risc-v">ackermann: #x: a1, y: a2, return: a0
|