Commit graph

248 commits

Author SHA1 Message Date
H. S. Teoh
c09c178d04 Merge pull request #2524 from 9il/ctfe-math-2
findRoot optimization and bugfix
2014-09-19 11:11:07 -07:00
Ilya Yaroshenko
e125d03fdb findRoot optimization
restore signbit check

findRoot style update

findRoot style update 2
2014-09-19 21:36:02 +04:00
H. S. Teoh
33956f10a1 Merge pull request #2508 from 9il/frexp-single-double
std.math: added frexp for double and float
2014-09-16 12:29:04 -07:00
Ilya Yaroshenko
c9f8a47e1c remove private 2014-09-16 22:06:40 +04:00
Ilya Yaroshenko
0419a2e357 make a template 2014-09-16 22:04:17 +04:00
Ilya Yaroshenko
298942b7ed Update indentation 2014-09-16 21:10:45 +04:00
Ilya Yaroshenko
7be5f90145 std.math: added frexp for float and double 2014-09-11 10:00:50 +04:00
Rainer Schuetze
3ed25d61ae use CRuntime_DigitalMars/CRuntime_Microsoft instead of Win32/Win64 where appropriate 2014-08-23 16:14:18 +02:00
Dicebot
b4f30ffa3d Add more integer isXXX deprecations
Also implementation is changed to forward to floating point signature
instead of a stub to exactly match old behaviour.
2014-07-26 04:04:18 +02:00
Iain Buclaw
9b7ab18faa Define isNaN deprecation for integers
Also cleans isNaN unit tests
2014-07-26 03:17:05 +02:00
Walter Bright
984f3c9fd1 Revert "Add integral overload for isNaN for use in generic code" 2014-07-23 12:05:24 -07:00
Михаил Страшун
99624bbd48 Merge pull request #2311 from ibuclaw/intnan
Add integral overload for isNaN for use in generic code
2014-07-23 05:02:01 +02:00
Михаил Страшун
e6083a626d Merge pull request #2353 from ibuclaw/floatfmt
Add enum RealFormat to std.math
2014-07-23 02:00:01 +02:00
Iain Buclaw
b85f506e6a Replace mant_dig CTFE tests with realFormat 2014-07-21 18:05:14 +01:00
Iain Buclaw
1b4d03a632 Add enum RealFormat for floatTraits 2014-07-19 18:02:38 +01:00
Iain Buclaw
494ffeb79b Ddoc supported 'real' formats in std.math 2014-07-19 18:02:13 +01:00
Iain Buclaw
ef4203348d Add integral overload for isNaN for use in generic code 2014-07-19 12:01:59 +01:00
Михаил Страшун
11c3da9c48 Merge pull request #2305 from ibuclaw/tmplmath
Change various std.math.isXXX into templates
2014-07-18 18:45:54 +02:00
Iain Buclaw
1e9c457f14 Merge pull request #2133 from jpf91/mingw
std.math: Check if dmd-style inline asm is available
2014-07-12 13:18:34 +01:00
Joakim
11de397dd7 Start getting tests passing on Android/x86 2014-07-09 17:52:15 -05:00
Iain Buclaw
6ae25592ca Fixup use of whitespace in places 2014-07-06 11:22:30 +01:00
Iain Buclaw
f2ebfd08d9 Convert std.math.copysign into a template 2014-07-06 11:08:31 +01:00
Iain Buclaw
68fa380079 Convert std.math.signbit into a template 2014-07-05 18:09:49 +01:00
Iain Buclaw
f99db63cf8 Add floatTraits.SIGNPOS_BYTE for float 2014-07-05 18:09:46 +01:00
Iain Buclaw
57a446e59a Convert std.math.isSubnormal into a template 2014-07-05 18:09:44 +01:00
Iain Buclaw
1ce7a795ff Convert std.math.isFinite into a template 2014-07-05 18:09:39 +01:00
Iain Buclaw
f2ab839a68 Replace BMASK with a computed clear mask 2014-06-29 06:39:47 +01:00
Iain Buclaw
3eee1e24eb Convert isNan/isInfinite into generic functions, add compile-time float path 2014-06-29 06:39:46 +01:00
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
Johannes Pfau
f0704ef97b std.math: Check if dmd-style inline asm is available 2014-04-28 18:32:52 +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