Martin
adc30e7756
Implement std.math.exp2() for single- and double-precision
2018-08-15 18:32:33 +02:00
Martin
a08c986a42
Implement std.math.expm1() for double-precision
...
And make the x87 `real` version CTFE-able.
I couldn't find the single-precision version in Cephes.
2018-08-15 18:32:33 +02:00
Martin
d17cda4c77
Implement std.math.exp() for single- and double-precision
2018-08-15 18:32:33 +02:00
Martin
d3f5005568
Implement std.math.tan() for single- and double-precision
...
And make the x87 `real` version CTFE-able.
2018-08-15 18:32:33 +02:00
Martin
83e0a95468
Implement std.math.atan2() for single- and double-precision
...
And make the x87 `real` version CTFE-able.
2018-08-15 18:32:33 +02:00
Martin
ef21892f52
Implement std.math.atan() for single- and double-precision
...
And make the x87 `real` version CTFE-able.
2018-08-15 18:32:32 +02:00
Nathan Sashihara
7f1301c3a7
Remove duplicate definitions of DOUBLEPAIR_MSB & DOUBLEPAIR_LSB for IBM doubledouble
2018-08-13 12:34:08 -04:00
Joakim
c37092a5bf
std.math: IEEE Quadruple-precision fixes for AArch64
2018-06-24 16:33:55 +05:30
Joakim
789843992e
std.math: sign of NaN returned by remainder with zero divisor doesn't matter
2018-06-24 16:33:55 +05:30
Joakim
f85f98ee60
std.math: only version out tests that rely on a FPU with D_HardFloat
2018-06-24 16:33:55 +05:30
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
The Dlang Bot
9974b6190e
Merge pull request #6512 from ibuclaw/mipsmasks
...
std.math: Fix mask values of inexact and invalid on Mips
merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2018-05-26 19:41:05 +02:00
Iain Buclaw
acd81b316a
std.math: Remove redundant '&' from ARM setControlState call
2018-05-23 23:21:14 +02:00
Iain Buclaw
92d0942044
std.math: Merge ARM and AArch64 versions into ARM_Any
2018-05-23 23:21:14 +02:00
The Dlang Bot
4d27f76bd0
Merge pull request #6510 from ibuclaw/mathcw
...
std.math: Define ControlState and ExceptionMask for SPARC64 and SystemZ
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2018-05-20 12:17:37 +02:00
The Dlang Bot
eaa667311f
Merge pull request #6479 from kinke/fixFmin
...
std.math: Change fmin/fmax semantics wrt. NaNs
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-05-18 20:20:00 +02:00
Iain Buclaw
fc9a25c403
std.math: Define ExceptionMask values for SPARC64 and SystemZ
2018-05-16 23:37:35 +02:00
Iain Buclaw
0b4873792c
std.math: Fix mask values of inexact and invalid on Mips
2018-05-16 23:22:37 +02:00
Iain Buclaw
7296b299c8
std.math: Define ControlState type for SPARC64 and SystemZ
2018-05-16 00:29:40 +02:00
Nathan Sashihara
beb13a642d
In std.math public tests use exact equality where the specification mandates an exact result
2018-05-11 17:09:50 -04:00
Diederik de Groot
cb7bd1b158
truncl is defined as pure in core/stdc/math
...
(Removed exception for dragonfly, fixed up documentation and comment)
2018-04-30 16:35:13 +02:00
Martin
8d1929c46a
std.math: Change fmin/fmax semantics wrt. NaNs
...
If one of the arguments is a NaN, return the other. These are the C99
semantics; the previous simple ternary expression is covered by
std.algorithm.min/max.
2018-04-28 16:38:32 +02:00
Martin
7583d5434c
Fix std.math.log1p() unittest
...
log1p(-2.0) returns +NaN for the non-x87 software implementation, and so
does the MSVC runtime function. The x87 asm implementation and libm on
Linux return -NaN. So just ignore the sign.
2018-04-26 22:54:57 +02:00
Steven Schveighoffer
d4a35f09da
More removal of version(unittest)
2018-04-13 12:20:02 -04:00
Jack Stouffer
89ad7e79c1
Removed scope wide @trusted use in std.math
2018-04-11 19:36:27 -04:00
Jack Stouffer
b4f675fe15
Work On Issue 18693 - Remove rndtonl from std.math
2018-04-10 15:32:43 -04:00
Jack Stouffer
73c325da9d
Remove outdated status from std.math
2018-04-07 11:21:52 -04:00
Jack Stouffer
dfa8ccd2a2
Add public examples to all functions in std.math
2018-04-06 12:53:14 -04:00
Iain Buclaw
3c1067d384
std.math: Implement floor for ibmExtended reals.
2018-04-05 20:17:47 +02:00
The Dlang Bot
de259d43fb
Merge pull request #6336 from ibuclaw/noraisefe
...
std.math: Remove special cases that attempt to raise FE overflow/underflow flag
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-04-04 05:25:12 +02:00
Jack Stouffer
618018e69a
Merge pull request #6409 from JackStouffer/math-examples3
...
Add public examples to many functions to std.math
2018-04-03 15:24:47 -04:00
Jack Stouffer
52b27fa576
Add public examples to many functions to std.math
2018-04-03 10:56:40 -04:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Iain Buclaw
cd6f8ffe5b
Mark IeeeFlags and FloatingPointControl as @trusted nothrow @nogc
...
Added pure onto all FP flag getter functions, removing pure from all FP
flag setter functions.
2018-04-01 19:08:43 +02:00
Jack Stouffer
42afceb8c0
Add public examples to many functions to std.math
2018-03-30 13:46:31 -04:00
Radu Racariu
aefb272c81
fix wrong MIPS global identifier
2018-03-29 09:01:28 +03:00
Jack Stouffer
bc61918f07
Add public examples to many examples to std.math
2018-03-28 15:24:00 -04:00
The Dlang Bot
8c222350f4
Merge pull request #5820 from ibuclaw/floatfloor
...
std.math: Implement more optimal floorImpl for ieeeSingle
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-28 03:58:18 +02:00
Nathan Sashihara
83430da5c6
fix misnamed variable so PR #5820 compiles
2018-03-27 20:36:15 -04:00
Iain Buclaw
8164083940
std.math: Remove unittests that test exp() FE flags post calling.
2018-03-24 11:04:34 +01:00
Iain Buclaw
d79b27eab3
std.math: Remove special cases that attempt to raise FE overflow/underflow flag.
2018-03-24 10:42:23 +01:00
Iain Buclaw
87ff45038d
std.math: Implement more optimal floorImpl for ieeeSingle
2018-03-17 17:24:37 +01:00
Iain Buclaw
cc3960aaad
std.math: Use DOUBLEPAIR_MSB/LSB for accessing high/low parts of ibmExtended format
2018-03-17 10:37:23 +01:00
Jack Stouffer
a4d98d0e90
Fix Issue 18174 - std.math.equalsDigit should be usable in @safe
2018-03-15 10:16:25 -04:00
Kai Nacke
cbf4d44e19
std.math: fix feqrel for ibmExtended floats.
...
cast(double*)(&x)[MANTISSA_MSB] is of type double*. Moving the
opening parenthesis gives the right result.
2018-03-13 22:56:22 +01:00
MetaLang
a74271be4c
Revert "Issue 18244: std.math generic functions need to have sig constraints"
2018-02-23 10:46:07 -04:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Sebastian Wilzbach
a24b4509ac
Remove use of undefined ddoc macros from Phobos
2018-02-09 19:19:57 +01:00
Basile Burg
ec21afaa94
use Unqual to prevent impl. conv.
2018-02-07 16:50:44 +01:00