We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Georg,
is there any way to define a kind of macro like in c or c++?
For example I would like find closest power of two of any value. So the code is:
v = v - 1 v = v | v>>1 v = v | v>>2 v = v | v>>4 v = v + 1
I can't (maybe I'm wrong) use macro like:
!macro ClosestPowerOfTwo v v = v - 1 v = v | v>>1 v = v | v>>2 v = v | v>>4 v = v + 1 !end
and put in the source: and #+ClosestPowerOfTwo 12
and #+ClosestPowerOfTwo 12
The text was updated successfully, but these errors were encountered:
Currently not unfortunately. Macros are at the moment doing dumb replacement of the full caller line, so this wouldn't work out.
I have to figure out how to implement the above somehow, but that may take a while.
Sorry, something went wrong.
No branches or pull requests
Hello Georg,
is there any way to define a kind of macro like in c or c++?
For example I would like find closest power of two of any value.
So the code is:
I can't (maybe I'm wrong) use macro like:
and put in the source:
and #+ClosestPowerOfTwo 12
The text was updated successfully, but these errors were encountered: