Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How big the values can be?

big values
0
Posted

How big the values can be?

0

All the values in TTMath are stored on the stack. This library doesn’t use the heap (malloc/new etc.) because the cost of allocating memory on it is too high. (We’re often creating and destroying small objects). On the other hand we must note that the stack usually isn’t too large, normally today’s operating systems offer about 2Mb for the stack. This library was projected with the intention of using values with about 100 32bit words max. But it can be used with more than 100 words if your operating system allows the stack to be greater.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123