David Nadlinger
f640df12e4
Merge pull request #3298 from smolt/arm-fpscr
...
ARM FPSCR bit corrections
2015-05-20 15:42:49 +02:00
Dan Olson
cc8a3e1e0d
ARM FPSCR bit corrections
...
Correct IeeeFlags exception masks and FloatingPointControl
RoundingModes for ARM.
2015-05-19 23:24:15 -07:00
Walter Bright
e1f1838a52
Merge pull request #3287 from BBasile/fix-misleading-math-isSomething
...
fix several misleading ddocs and return types in the function isXXX()
2015-05-19 20:23:51 -07:00
Martin
70e5e942a0
std.math: proper support for 64-bit real in exp()
2015-05-17 20:30:43 +02:00
Martin
a514ac9686
std.math: refactor feqrel() incl. subnormal fix
...
For subnormal diffs, the old code used the whole ushort containing
the exponent bits as exponent, without masking and shifting. This
seems to have worked for 80-bit reals so far and the single unit-
test was only enabled for x87 reals.
2015-05-17 20:30:43 +02:00
Daniel Murphy
972c9485b6
Merge pull request #3293 from redstar/mathsqrt
...
Add additional tests for std.math.sqrt()
2015-05-17 23:48:11 +10:00
kai
d29d5d4130
Add additional tests for std.math.sqrt()
...
These tests spotted an implementation issue of LDC.
Provided by KevinBrogan.
2015-05-17 14:18:46 +02:00
kai
d3c6757286
Add missing EXPBIAS value for 128bit floats.
...
Found this source for the value: http://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format
2015-05-17 13:51:20 +02:00
Basile Burg
94566c4c27
style, ddoc
...
+ removed note about isSubnormal() implementation that's not relevant for the end user since there are no public overloads.
2015-05-17 09:07:48 +02:00
Basile Burg
ef134e6d0d
fix several misleading ddocs and return types in the function isXXX()
...
their results are always of type bool.
2015-05-16 09:46:07 +02:00
Walter Bright
d9a9826e55
Revert "Introducing std.meta package"
2015-05-06 14:36:45 -07:00
Dicebot
82f54a38d3
TypeTuple -> MetaList inside Phobos
2015-05-05 22:22:11 +03:00
Dicebot
73f773838d
import std.typetuple -> import std.meta
2015-05-05 22:22:10 +03:00
Johan Engelen
b9239bfa38
Add unittests for std.math.ilogb
2015-04-12 18:55:05 +02:00
Johan Engelen
f841c91aac
Fix bug in std.math.ilogb in CRuntime_Microsoft path.
2015-04-12 16:49:26 +02:00
Ilya Yaroshenko
5bbceb4b65
fixAfter #3014
2015-04-08 13:31:36 +03:00
Robert Schadek
e5f9e078a7
Merge pull request #3014 from 9il/intrinsic
...
std.math: №4, workaround for intrinsics
2015-04-08 12:07:12 +02:00
Johan Engelen
723e894c9a
Fix compilation.
...
The errors were:
- phobos/std/math.d(2599): Error: only global variables can be referenced by identifier in naked asm
- phobos/std/math.d(2611): Error: only global variables can be referenced by identifier in naked asm
- phobos/std/math.d(2612): Error: only global variables can be referenced by identifier in naked asm
2015-04-06 15:38:48 +02:00
Martin
9be862c931
Fix an std.math.poly() unit test.
...
The expression (6L * x) with 6 being a long literal (instead of an
intended real literal) and x of type double evaluates to a double,
while poly() uses real precision.
2015-04-04 14:34:27 +02:00
Joseph Rushton Wakeling
8d24a51ea0
Document std.math.abs with Params and Returns
2015-03-22 15:44:53 +01:00
Robert Schadek
b52e2caa78
Merge pull request #3013 from 9il/conj
...
std.math: №3, conj for double and float
2015-03-10 12:40:24 +01:00
Robert Schadek
0af21d7d52
Merge pull request #3012 from 9il/abs
...
std.math: №2, fix abs, fabs
2015-03-05 13:37:30 +01:00
Ilya Yaroshenko
ecfc77706e
abs unittest
2015-03-05 14:00:13 +03:00
Martin Nowak
62acd72cec
Merge pull request #3017 from 9il/frexp
...
[2.067.0-b2][regression] fix Issues 14212 and 6586
2015-02-27 17:30:41 +01:00
Ilya Yaroshenko
09ebc581ec
rework and try to fix Issue 6586
2015-02-26 13:56:46 +03:00
Ilya Yaroshenko
71aab209a0
fix commits
...
fix naming
fix unittest
fix static name
2015-02-26 13:56:44 +03:00
Ilya Yaroshenko
a02983e4ef
CTFE-able poly
...
This PR allows many special math function be executed at compile time.
reduced code size
fix
2015-02-26 13:22:09 +03:00
Ilya Yaroshenko
efabbd365e
std.math №3: conj for double and float
...
Issue 14206 workaround
2015-02-20 13:56:48 +03:00
Ilya Yaroshenko
83f7a870ec
std.math: №2, fix abs, fabs
...
intrinsic for `fabs` should be added to DMD.
fix unittest
2015-02-20 13:19:19 +03:00
Ilya Yaroshenko
a77c0c2042
std.math: №4, workaround for intrinsics
2015-02-20 13:07:36 +03:00
Ilya Yaroshenko
6f4b47f14c
std.math: №1, change protection
...
Attribute changed for `RealFormat`, `floatTraits`, `floorImpl`. This
suff is usefull in other modules like `std.numeric` and
`std.mathspecial`.
2015-02-20 12:26:04 +03:00
k-hara
e7b3d834d7
detab and remove trailing whitespaces
2015-02-10 00:56:40 +09:00
H. S. Teoh
f4a8f62aae
Merge pull request #2960 from 9il/poly
...
poly template
2015-02-07 11:05:34 -08:00
Ilya Yaroshenko
62a1db045e
poly template
...
fix unittest
fix unittest
fix spaces
2015-02-07 19:37:09 +03:00
Ilya Yaroshenko
23b17ca082
fix unittest
...
For future `double` and `float` versions of `log2`.
2015-02-05 00:46:51 +03:00
anonymous
9309f2b142
[DDoc] add HTML class "quickindex" to manually maintained jump link tables
2015-01-26 11:19:05 +01:00
Robert burner Schadek
2b4fc3402e
documentation update and @safe pure etc unittests
...
some more
2015-01-25 22:11:49 +01:00
Andrei Alexandrescu
cb044b02aa
Verbatim-related changes in phobos
2015-01-12 00:05:36 -08:00
Andrei Alexandrescu
a13cee766d
Ensure each module has a description at the top.
2015-01-11 14:14:29 -08:00
Andrei Alexandrescu
f6ab350232
Merge pull request #2849 from WalterBright/math-sin-doc
...
improve doc of std.math.sin
2015-01-07 14:39:29 -08:00
Walter Bright
de68fe9087
improve doc of std.math.sin
2015-01-07 12:15:37 -08:00
Andrei Alexandrescu
7e766e6796
Replace a bunch of SUP with SUPERSCRIPT
2015-01-06 22:08:21 -08:00
Rainer Schuetze
7c2f962b10
make nested foreach over TypeTuple bodies into lambdas to avoid huge functions
2014-11-28 17:15:37 +01:00
Dmitry Olshansky
eb9b71d595
Merge pull request #2611 from redstar/math
...
Add support of IEEE Flags and FloatingPointControl for PPC32/64.
2014-10-31 21:59:13 +03:00
Ilya Yaroshenko
aaa00bfb1d
update std.math and numeric
...
is->are
2014-10-25 00:23:30 +04:00
Geod24
0fb95b8c27
Usage of WEB macro for License everywhere
2014-10-15 11:30:42 +02:00
kai
b2e8ce83c6
Add support of IeeFlags and FloatingPointControl for PPC32/64.
...
This corrects some existings constants and adds new constants and logic.
Reading the PowerPC documentation is sometimes confusing because not only the
CPU is big endian but also the bit numbering inside a word is reversed (old
IBM style big endian).
The functionaly has been verified on a Linux/PPC64le system with LDC. The LDC
specific implementation is left out.
2014-10-13 23:24:08 +02:00
Dmitry Olshansky
ddae9ae99d
Merge pull request #2572 from MartinNowak/asmAttributes
...
attributes for inline asm
2014-10-09 00:08:11 +04:00
Mark Isaacson
42fa0262da
Categorize functions in std.math
2014-09-30 20:57:17 -04:00
Martin Nowak
26a52bc2d9
attributes for inline asm
2014-09-30 00:58:10 +02:00