Rangi
748e7dd4c7
Fix calculation of 2**30
...
In exponent(), 'base *= base;' should not run
when base is 65536, since it overflows an int32_t.
This also optimizes exponent() based on
gcc and clang -O3 test cases in godbolt.org.
2021-02-17 09:25:02 -05:00
..
2020-10-11 21:03:41 +02:00
2021-01-22 13:34:16 +01:00
2021-01-02 02:37:32 +01:00
2021-01-22 15:54:24 +01:00
2021-02-16 22:44:25 -05:00
2021-02-16 16:31:01 -05:00
2021-02-12 00:29:21 +01:00
2021-02-16 18:07:05 -05:00
2021-01-22 10:41:09 +01:00
2021-02-16 22:47:07 +01:00
2021-02-16 22:01:23 -05:00
2021-02-16 16:31:01 -05:00
2021-02-16 22:44:25 -05:00
2021-02-17 09:25:02 -05:00
2021-02-16 22:01:23 -05:00
2021-01-22 13:34:16 +01:00
2021-01-19 15:03:22 +01:00
2021-02-16 16:31:01 -05:00