Commit graph

12 commits

Author SHA1 Message Date
Martin Kinkelin
06037a25b4 std.math.exponential: Minimally relax a pow() unittest for targets with 64-bit real
Required since #7783.
2021-06-03 07:56:03 +00:00
Martin Kinkelin
8946209a9b Revert #7823 - Faster pow implementation for integral exponents
There are multiple issues with that commit, incl. out-of-bounds read
on x86 systems and a significant performance decrease for qualified
floating-point types; see #8124 for a full list of flaws.

I'm questioning the tackled goal in the first place, because I expect
users to use that `pow` mainly with small integral exponents, *not*
expecting underflows to 0 or overflows to ±infinity, so optimizing
for these cases and sacrificing performance for the regular case doesn't
make a lot of sense to me.
2021-06-03 09:57:57 +09:00
Martin Kinkelin
0a685c19ac std.math: Fix missing imports for non-x87 real after split-up 2021-05-29 14:48:17 +02:00
Iain Buclaw
52699fc020 std.math: Adjust whitespace of a few unittests 2021-05-11 09:14:14 +02:00
Nathan Sashihara
efced87ae8 Again use core.math intrinsics instead of std.math wrappers
As in PR #7821 & PR #7825. Mostly changes imports
from std.math being divided into submodules.
2021-05-04 15:59:34 +02:00
Iain Buclaw
1d0da90d82 std.math.exponential: Fix imports for non-INLINE_YL2X path 2021-04-30 02:15:43 +02:00
berni44
7f42447274 std.math: Move powmod to exponential submodule. 2021-04-20 04:54:59 +02:00
berni44
0c4dcb32a0 Narrow imports in std.math. 2021-04-19 22:32:55 +02:00
berni44
bb2432fdb4 Replace equalsDigit with isClose 2021-04-17 16:59:34 +02:00
berni44
64398c058f std.math: Move exponential functions into exponential submodule. 2021-04-14 16:18:20 +02:00
berni44
59f78a2ae8 std.math: Move pow function into submodule. 2021-04-12 02:43:35 +02:00
berni44
7031340f5f Add empty submodules to std.math. 2021-04-04 11:56:27 +02:00