Iain Buclaw
d68bc3da52
Move common floor() code into floorImpl()
2014-06-28 13:45:34 +01:00
Iain Buclaw
9ba75a9b11
Add float/double overloads for floor/ceil
2014-06-28 13:07:55 +01:00
Iain Buclaw
9fca0a348b
Explicitly use real literals in floor/ceil tests
2014-06-28 08:48:46 +01:00
Iain Buclaw
df5dab4a7a
Remove slow array copy from math.floor()
2014-06-28 08:48:46 +01:00
Joakim
9325f6f6a1
Remove redundant @nogc attributes
2014-06-25 12:59:10 -05:00
Walter Bright
58112802ed
Merge pull request #2146 from monarchdodra/safePureNothrow
...
Sed "@safe pure nothrow"
2014-05-06 14:12:02 -07:00
Walter Bright
389bd611bd
@nogc for std.math
2014-05-06 11:16:58 -07:00
monarchdodra
d609bd332f
Sed "@safe pure nothrow"
2014-05-06 08:21:13 +02:00
Walter Bright
0c945e2627
@nogc for builtin functions
2014-04-23 02:27:54 -07:00
k-hara
384a1da82f
fix property enforcement
2014-04-03 13:46:40 +09:00
Johannes Pfau
0250969689
Fix pull request #1961 : add more hasExceptionTraps checks
2014-03-22 13:32:50 +01:00
Johannes Pfau
63a98882c6
[ARM] Some FPUs do not support exception trapping, disable test
2014-03-10 13:23:54 +01:00
Yazan S. Dabain
a81f6200cf
[Trivial] Fix documentation typos
2014-02-28 21:08:19 +02:00
Rainer Schuetze
40c14681f3
std.digest.sha: disable SSSE3 for SHA because it has unsupported calling convention
...
std.format, std.math: workarounds for different behaviour of sprintf
std.conv: workarounds for different behaviour of strtold
std.math: disable unittests for exp2f and exp2l
std.math: fix lrint(real), disable tmpfile test
std.process: seek to end of file before trying to append to it from another process
std.process: do not try to terminate an invalid process handle
win64.mak: disable COMDAT folding for release build
2014-02-27 22:16:29 +01:00
k-hara
b391b2ec9f
Convert to new alias syntax
2014-02-11 15:27:05 +09:00
Alex Rønne Petersen
5b1aa8bf45
Merge pull request #1861 from jpf91/arm-3
...
[ARM] Fix phobos unit tests
2014-01-25 07:27:41 -08:00
Daniel Murphy
a656f26e9e
Remove use of automatic adjacent string literal concatenation from phobos
2014-01-20 03:42:21 +11:00
Johannes Pfau
37852ab451
[ARM] Implement remaining std.math stuff
2014-01-15 22:30:39 +01:00
Johannes Pfau
295508fd20
Fix NaN for systems with 64bit reals
2014-01-15 22:30:19 +01:00
Johannes Pfau
9f4001bd7a
Fix isInfinity for systems with 64bit reals
2014-01-15 22:29:39 +01:00
Johannes Pfau
2541ac2634
Fix frexp for systems with 64bit reals
2014-01-15 22:27:34 +01:00
Johannes Pfau
8b124e461c
[ARM] Fix phobos unit tests
2014-01-15 16:31:25 +01:00
monarchdodra
fd8540072d
Remove trailing white
2014-01-08 08:30:28 +01:00
Martin Nowak
cfd52f2688
localize std.range import
2013-12-20 01:23:51 +01:00
kai
072fec2cd6
Make an unit test of std.math IEEE 754-2008 compliant.
...
IEEE 754-2008 does not specify the sign bit of a NaN. The exceptions to this
rule are the operations copy, negate, abs and copySign. In all other cases,
the standard does not specify the sign bit (chapter 6.3 on page 35).
The unit test I like to change with this pull request assumes that the sign
bit of a NaN is propagated through the exp() computation. This assumption
violates IEEE 754-2008.
My fix is the use of abs() on the result, because this operation changes the
sign bit of a NaN in a compliant way.
There might be other places which must be fixed but this one really hurts me.
2013-12-05 09:14:59 +01:00
Daniel Murphy
de64ad0e30
Remove uses of nceg operators from std.math
2013-11-27 04:07:46 +11:00
monarch dodra
60187c9d83
Merge pull request #1536 from lionello/bug10893
...
Fix issue 10893: added missing or renamed DDoc parameters
2013-09-08 08:37:19 -07:00
Lionello Lunesu
b4074054ba
Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236)
2013-08-31 15:36:29 +08:00
H. S. Teoh
5a622e0fb1
Add unittest for issue 6381.
...
To prevent regressions.
2013-08-29 08:04:27 -07:00
Johannes Pfau
20a60cf6f3
Fix frexp for real == double targets
2013-08-23 09:47:41 +02:00
ibuclaw
e778622f64
Fix floor/ceil for real==double targets.
2013-08-20 11:55:10 +01:00
ibuclaw
88b44697bb
Fixup std.math unittests for new math implementations.
2013-08-18 16:28:16 +01:00
ibuclaw
e4e5ed0163
Implement pure pow().
2013-08-18 16:28:16 +01:00
ibuclaw
5deada0d9d
Implement pure lrint().
2013-08-18 16:28:12 +01:00
ibuclaw
bf2b2a1858
Implement pure log2().
2013-08-18 16:21:23 +01:00
ibuclaw
e3cfba31c6
Implement pure log1p().
2013-08-18 16:21:19 +01:00
ibuclaw
67186ce75f
Implement pure log10().
2013-08-18 16:21:15 +01:00
ibuclaw
40de5a9b19
Implement pure log().
2013-08-18 16:21:12 +01:00
ibuclaw
b1c905ecb7
Implement pure exp2().
2013-08-18 16:21:08 +01:00
ibuclaw
6eafc405e8
Implement pure expm1().
2013-08-18 16:21:05 +01:00
ibuclaw
3e5ed781e2
Implement pure exp().
2013-08-18 16:21:03 +01:00
ibuclaw
598c1b8356
Implement pure atan2().
2013-08-18 16:20:59 +01:00
ibuclaw
bdea1c2f26
Implement pure atan().
2013-08-18 16:20:57 +01:00
ibuclaw
c7e0bac5c6
Implement pure tan().
2013-08-18 16:20:54 +01:00
ibuclaw
26715f73d0
Implement pure floor()/ceil().
2013-08-18 16:20:46 +01:00
ibuclaw
906648eacd
Remove calls to impure mathlib functions.
2013-08-08 18:59:52 +01:00
Hackerpilot
07a2e8e3ad
Reverted some changes made to the math module
2013-07-15 10:20:26 -07:00
Hackerpilot
adc44adafd
Revert "Use @monarchdodra's suggestion to replace ; with {}"
...
This reverts commit 0c706b1560
.
2013-07-15 10:11:20 -07:00
Hackerpilot
0c706b1560
Use @monarchdodra's suggestion to replace ; with {}
2013-07-15 10:10:51 -07:00
Hackerpilot
27aa2c8a44
Don't move labeles while tired
2013-07-15 00:42:31 +00:00