by Major Cooke » Wed Feb 28, 2018 8:16 am
According to Gutawer who did some testing, performing x * x (up until 9 multipliers, then it gets slower) is apparently faster than doing x ** y. In particular this seems a bit counter-intuitive especially if we're just doing integer multiplication.
And on that note:
Currently this does not work. I suggest an integer version of exponential power.
According to Gutawer who did some testing, performing x * x (up until 9 multipliers, then it gets slower) is apparently faster than doing x ** y. In particular this seems a bit counter-intuitive especially if we're just doing integer multiplication.
And on that note:
[code]enum TestNum
{
MyVar = 8 ** 2
};[/code]
Currently this does not work. I suggest an integer version of exponential power.