Is it possible to use macros to define the logarithm function, for integers?
I'm constructing an array whose size depends on some variables defined as #defines. (It's actually the log of a few of these variables)
At the moment I'm calling a static method to allocate the array dynamically, even though its size can easily be calculated from the constants...
I could of course just calculate it myself, but I'd really like to keep it variable, so I can increase/detail what is basically the detail of my program...
Any help?
I have no idea where to go from here.
Thanks for your time!