Last active
September 6, 2022 15:25
-
-
Save theoknock/5d1f54d3b1b9b7576f1f4cfb700ef954 to your computer and use it in GitHub Desktop.
Bitwise recursive block
This file contains hidden or 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
__block unsigned long (^recursive_block)(unsigned long); | |
(recursive_block = ^ unsigned long (unsigned long index) { | |
printf("index == %lu\n", index); | |
return (unsigned long)(index ^ (unsigned long)(recursive_block)(~-index)); | |
})(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment