Iain Buclaw
c385950816
std/math.d: Explicitly handle zero and inf in scalbn.
2019-10-19 04:41:16 +02:00
Berni
56c1473f2a
Fix issue 20205 - std.math: Wrong result for abs(int.min)
2019-10-06 16:37:04 +02:00
Berni
639f49770c
Add unittest to std.math to avoid falling into the trap again.
2019-10-06 14:51:11 +02:00
Sebastian Wilzbach
23fe9b85c1
Revert "Fix issue 20205 - std.math: Wrong result for abs(int.min)"
2019-10-04 12:35:51 +02:00
The Dlang Bot
b36652a3e9
Merge pull request #7180 from crocopaw/approxEqual
...
Clearer documentation for approxEqual
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-26 16:40:20 +02:00
Berni
e6b5c68b4b
Fix issue 20205 - std.math: Wrong result for abs(int.min)
2019-09-12 20:57:42 +02:00
The Dlang Bot
ee30e07854
Merge pull request #7177 from n8sh/issue-20199
...
Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-10 16:48:31 +02:00
The Dlang Bot
1160d7bd39
Merge pull request #7178 from n8sh/issue-20201
...
Fix Issue 20201 - Make std.math.scalbn pure
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-10 09:02:05 +02:00
The Dlang Bot
cd1a9601ff
Merge pull request #7175 from n8sh/issue-20196
...
Fix Issue 20196 - Make std.math.isNormal work in CTFE
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-10 04:38:29 +02:00
Berni
22d4ca5748
Rearrange and add unittests
2019-09-09 21:09:55 +02:00
Berni
16912a3893
Change documentation to make the purpose more clear.
...
a) Make clear, that fullfilling one criterium is enough
b) Make clear, that the function is not symmetric.
2019-09-09 21:09:55 +02:00
Berni
0d2f54ba31
Remove misleading comments in unittests for approxEqual
2019-09-09 18:21:37 +02:00
Berni
dc22eb3c17
Remove duplicate unittest for approxEqual
2019-09-09 18:21:37 +02:00
Berni
5afe334b11
Refactor approxEqual, removed superfluous overload
2019-09-09 18:21:29 +02:00
Nathan Sashihara
e45ac910a2
Fix issues 20202 & 20203 - Make std.math.signbit and copysign work in CTFE
2019-09-08 16:38:55 -07:00
Nathan Sashihara
e7609cb873
Fix issues 20199 & 20200: make std.math.frexp & isPowerOf2 work in CTFE
2019-09-08 15:13:01 -07:00
Nathan Sashihara
083a0ac743
Fix Issue 20201 - Make std.math.scalbn pure
2019-09-08 13:13:46 -07:00
Nathan Sashihara
5fbe3b4ca1
Fix Issue 20196 - Make std.math.isNormal work in CTFE
2019-09-08 07:51:10 -07:00
The Dlang Bot
b37e91944a
Merge pull request #7169 from n8sh/issue-17705
...
Fix Issue 17705 - std.math.isFinite cannot run at compile-time
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2019-09-05 07:44:24 +02:00
Nathan Sashihara
3586763213
Fix Issue 20192 - Make std.math.isSubnormal work in CTFE
2019-09-04 13:10:33 -07:00
Nathan Sashihara
a26d88c16f
Fix Issue 17705 - std.math.isFinite cannot run at compile-time
2019-09-04 12:31:47 -07:00
Nathan Sashihara
ef29e25985
Issue 20159 Followup - fix ldc-win32 test failure
...
https://github.com/dlang/phobos/pull/7153#issuecomment-524536212
2019-08-24 02:46:58 -07:00
Nathan Sashihara
7887d042e6
Fix Issue 20159 - Make std.math.scalbn work in CTFE
2019-08-23 20:52:26 -07:00
Rainer Schuetze
d287336b52
ieeeFlags unittest: the optimizer might remove operations that the test is depending upon
2019-08-09 17:52:48 +02:00
The Dlang Bot
e123a4d1a8
Merge pull request #7102 from dgileadi/enable-markdown
...
Turn on -preview=markdown
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-07-24 02:48:50 +02:00
Walter Bright
9e61c5740d
std.math: change tests for rounding
2019-07-15 22:07:50 -07:00
David Gileadi
775bcdee51
Turn on -preview=markdown
2019-07-04 10:28:30 -07:00
Martin Nowak
b42d6291ab
Merge remote-tracking branch 'upstream/stable' into merge_stable
2019-06-13 01:06:21 +02:00
The Dlang Bot
7cdd92f544
Merge pull request #7026 from wilzbach/import-selective4
...
Use selective top-level module imports in std.{functional,getopt,math,net,outbuffer}
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-23 15:08:36 +02:00
Sebastian Wilzbach
b56db9a061
Use selective top-level module imports in std.{functional,getopt,math,net,outbuffer}
2019-05-23 13:20:04 +02:00
Andrei Alexandrescu
b240c867c1
Faster isNaN test ( #7009 )
...
* Faster isNaN test
2019-05-22 07:55:04 +08:00
Eugen Wissner
f95f81af9c
math.d: disable inline asm tests if unsupported
2019-05-20 14:44:56 +02:00
Iain Buclaw
03ce27d1d4
[S390] std.math: Use IBMZ_Any for SystemZ bindings
2019-04-28 09:12:17 +02:00
Johannes Pfau
fb82c219b7
MinGW build fixes
2019-04-27 09:58:32 +02:00
Iain Buclaw
501080fa4f
Add minimum RISCV support to phobos
2019-04-09 21:12:46 +02:00
tibi77
d28a879fec
Fix Issue 18728 - std.math.fdim does not handle nan correctly ( #6896 )
...
Fix Issue 18728 - std.math.fdim does not handle nan correctly
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-03-11 13:45:08 +01:00
Simen Kjærås
4cc23fd93a
Fix issue 19686 - sgn is too greedy
2019-02-19 09:27:38 +01:00
Iain Buclaw
3abe79ed52
Add minimum HPPA support to phobos
2019-01-18 01:41:28 +01:00
Iain Buclaw
a5751e5b39
std/math.d: Don't emit message saying that test is disabled
2019-01-05 17:16:54 +01:00
The Dlang Bot
43be36c179
Merge pull request #6790 from joakim-noah/stable
...
Android and AArch64: tweak tests that trip
merged-on-behalf-of: unknown
2018-12-18 03:26:39 +01:00
Joakim
073ea406c6
Loosen two tests for IEEE Quadruple precision and make sure std.variant.VariantN is properly aligned for Quadruples.
2018-12-17 19:58:33 +05:30
Basile Burg
33aefbb729
[trivial] remove empty asm instructions from std.math
2018-11-23 17:10:37 +01:00
Iain Buclaw
918954a3d9
std.math: Use SPARC_Any instead of SPARC64
2018-11-01 01:24:46 +01:00
The Dlang Bot
a00b2e59af
Merge pull request #6719 from jpf91/aarch64
...
[AArch64] [GDC] Fix two small AArch64 bugs / typos
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-09-30 10:24:39 +02:00
Johannes Pfau
00301f0f0b
AArch64: Fix typo in std.math
2018-09-30 09:28:47 +02:00
Iain Buclaw
fd5facfe04
posix.mak: Enforce whitespace before opening parenthesis for version conditions
2018-09-22 16:57:24 +02:00
Iain Buclaw
a55fcb7349
std.math: Remove support for IBM extended reals
2018-09-15 12:07:21 +02:00
Johannes Pfau
24c998d021
Make hasExceptionTraps pure on ARM
2018-09-08 14:39:07 +02:00
Walter Bright
33cceac7ac
switch Digital Mars copyright to D Language Foundation
2018-09-05 13:49:46 -07:00
Sebastian Wilzbach
6a0a91a813
Use version(TestComplex) as a workaround against issue 18051
2018-08-20 14:09:57 +02:00