diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-06 16:45:04 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2024-02-06 16:45:04 +0300 |
commit | 21c5be3706f70d573f8d0195760846fce46f6807 (patch) | |
tree | 9240d238d5b183bdaf57ecad69c10595736690e0 /lib/lexers/freebasic.tes | |
parent | 37eef3cf0ab0b0ed3dabc1c96515f4e30011f9db (diff) | |
download | sciteco-21c5be3706f70d573f8d0195760846fce46f6807.tar.gz |
fixed the power (^*) operator: did not handle corner cases and was inefficient
* in fact, with a negative exponent the previous naive implementation would even hang indefinitely!
* Now uses the squaring algorithm.
This is slightly longer but significantly more efficient.
* added test cases
Diffstat (limited to 'lib/lexers/freebasic.tes')
0 files changed, 0 insertions, 0 deletions