Commit graph

256 commits

Author SHA1 Message Date
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
Iain Buclaw
dfca385ffc Fill in ARM FPSCR stub 2014-09-27 11:17:06 +01:00
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