mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
![]() This changes the plus, minus, etc... operators from UnsignedBigInteger to use a static helper method. The static methods do not allocate any variables, instead all the required BigInteger output and temporary variables are required on call as parameters. This change already optimizes the number of allocations in complex operations such as multiply or divide, by having a single allocation per call (instead of one per loop). This new API also provides a way to limit the number of allocations for complex computations in other parts of the code. This is done by using these helpers in any place that currently makes use of the standard operators. |
||
---|---|---|
.. | ||
UnsignedBigInteger.cpp | ||
UnsignedBigInteger.h |