Category : ackermann

I was curious how far I could push gcc as far as compile-time evaluation is concerned, so I made it compute the Ackermann function, specifically with input values of 4 and 1 (anything higher than that is impractical): consteval unsigned int A(unsigned int x, unsigned int y) { if(x == 0) return y+1; else if(y ..

Read more