Created
October 26, 2022 21:56
-
-
Save VictorTaelin/cb241931c69ba9c0bc5a82f2fd117bd3 to your computer and use it in GitHub Desktop.
A configurable busy function meant to test parallel implementations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// A configurable busy function meant to test parallel implementations | |
// - 1st arg = parallel recursion depth | |
// - 2nd arg = sequential recursion length | |
(Foo 0 0) = 1 | |
(Foo 0 m) = (Foo 0 (- m 1)) | |
(Foo n m) = (+ (Foo (- n 1) m) (Foo (- n 1) m)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment