Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
function __fast_fibonacci_2_elems(nth) =
nth == 0 ? [0, 1] :
let(
_f = __fast_fibonacci_2_elems(floor(nth / 2)),
a = _f[0],
b = _f[1],
c = a * (b * 2 - a),
d = _f * _f
)
nth % 2 == 0 ? [c, d] : [d, c + d];
function __fast_fibonacci(nth) = __fast_fibonacci_2_elems(nth)[0];bb33edfd7This file is pinned to the selected release. Download the original to open it in your design tool.