Andrei Alexandrescu
adee662094
Merge pull request #5987 from JackStouffer/issue17249
...
Fix Issue 17249: Added BigInt.getDigit
2018-01-25 16:59:51 -05:00
The Dlang Bot
3784831e30
Merge pull request #6029 from BBasile/issue-14767
...
fix issue 14767 - Support CTFE of BigInt under x86
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-24 22:39:54 +01:00
Basile Burg
7bd984203c
non X86 is not modified anymore, X86 primitives not always inlined
2018-01-17 17:43:20 +01:00
Basile Burg
609e462fce
clarify the code comments
2018-01-17 17:27:20 +01:00
Basile Burg
bf2c2e646e
remove useless pure attrib
2018-01-14 23:49:21 +01:00
Basile Burg
fa12390b39
prevent deprecetation message about imports + add test from bugzilla
2018-01-14 22:07:17 +01:00
Basile Burg
f2c5ee3bf1
fix issue 14767 - Support CTFE of BigInt under x86
2018-01-14 21:21:36 +01:00
Martin
4b56139f70
Slightly simplify std.internal.cstring realloc logic
2018-01-11 20:39:56 +01:00
Jack Stouffer
dae55d039c
Fix Issue 17249: Added BigInt.getDigit
2018-01-03 13:22:02 -05:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
ee08d522cd
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-12-29 18:02:00 +01:00
The Dlang Bot
da00e8f390
Merge pull request #5927 from wilzbach/udflags
...
Add a StdUnittest version
merged-on-behalf-of: David Nadlinger <code@klickverbot.at>
2017-12-21 13:10:52 +01:00
Sebastian Wilzbach
1d8e1397e3
Use StdUnittest for #5932
2017-12-21 09:36:18 +01:00
Johannes Pfau
3a9b0513d9
gammafunction: Add constants for ieeeQuadruple reals
...
Setting MAXGAMMA to the same as for ieeeExtended reals means the range
of the gamma function will be limited to the same range as ieeeExtended.
However, until someone reviews the algorithm to work fine for
ieeeQuadruple ranges, this workaround seems fine. We just lose some
128bit real features, but we're still as good as x86.
2017-12-19 20:08:38 +01:00
Steven Schveighoffer
4873e2f6b3
Fix issue 18084 - tempCString type should not change layout when used in
...
unittests.
2017-12-19 11:55:08 -05:00
The Dlang Bot
ccdfcc9839
Merge pull request #5465 from andralex/sharedstaticinbigintnomore
...
Eliminate shared this from std/internal/math/biguintcore.d
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-27 21:53:49 +01:00
MetaLang
630e927a14
Remove fully qualified use of dataCaches
2017-11-25 03:33:41 -04:00
MetaLang
603113a0dd
Fix CircleCI and change deprecated symbols
2017-11-25 03:31:05 -04:00
Sebastian Wilzbach
85ec5dead5
Manually fix Allman brace style
2017-11-20 15:45:04 +01:00
Sebastian Wilzbach
df6365092a
Replace body
keyword with its replacement: do
...
Automatic replacement with
sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Sebastian Wilzbach
8089602180
Merge pull request #5795 from MartinNowak/cstring_template_bloat
...
factor out code that does not depend on input range
2017-11-17 16:17:25 +01:00
Martin Nowak
df04af7b78
factor out code that does not depend on input range
...
- avoids code duplication and makes better use of the
template cache for the limited number of char types
2017-10-29 00:54:27 +02:00
Martin Nowak
3832162a95
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-10-28 21:56:36 +02:00
Martin Nowak
9b0c3ea6d9
pure tempCString
2017-10-26 22:51:11 +02:00
Kohei Morita
93ee606fba
Fix Issue 16264(+11599) - BigInt multiplication crashes on 64-bit
2017-08-31 20:59:03 +09:00
H. S. Teoh
9091b16f5c
Add unittest.
...
Needs to be a standalone module because the problem does not show up
within std.range itself.
2017-08-11 08:48:23 -07:00
Andrei Alexandrescu
3535fc47ab
Eliminate shared this from std/internal/math/biguintcore.d
2017-08-03 12:40:00 -04:00
Sebastian Wilzbach
70f06b2357
Remove old, redundant private import access specifier
...
Very very old versions of D (well into 0.x) had imports public by default,
like C header files. This modernizes the codebase and removes the
redundant `private` access specifier.
This has been done with:
sed "s/private import/import/g" -i **/*.d
2017-07-11 12:28:39 +02:00
Andrei Alexandrescu
2f16ae7cb7
Eliminate shared this from std/process.d
2017-06-15 17:01:43 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
...
This reverts commit 998ad51fd7
.
2017-06-13 17:51:52 +00:00
Sebastian Wilzbach
998ad51fd7
Sort selective imports
2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d
Sort imports
2017-06-12 07:54:38 +02:00
David Nadlinger
3662b6ff55
std.mathspecial: erf*() for quad-precision reals
...
Like the 80 bit real implementation, this is a translation of
CEPHES code.
Verified on LDC/AArch64.
2017-06-10 23:06:53 +01:00
Andrei Alexandrescu
78b3328faa
Get rid of static this for initializing encoding
2017-05-23 19:17:47 -04:00
Jack Stouffer
4ce5d44dbb
Use underscores for number literals with five or more digits
2017-02-23 09:45:49 -05:00
Sebastian Wilzbach
a1bb0515fc
Automatically add spaces to binary operators (>=)
...
command:
sed -E "s/([[:alnum:]]) >= ([[:alnum:]])/\1 >= \2/g" -i **/*.d
sed -E "s/([[:alnum:]])>= ([[:alnum:]])/\1 >= \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) >=([[:alnum:]])/\1 >= \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
203755d296
Automatically add spaces to binary operators (>>)
...
command:
sed -E "s/([[:alnum:]]) >> ([[:alnum:]])/\1 >> \2/g" -i **/*.d
sed -E "s/([[:alnum:]])>> ([[:alnum:]])/\1 >> \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) >>([[:alnum:]])/\1 >> \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
ef7be4b60d
Automatically add spaces to binary operators (<<)
...
command:
sed -E "s/([[:alnum:]]) << ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<< ([[:alnum:]])/\1 << \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <<([[:alnum:]])/\1 << \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
d905ef53b1
Automatically add spaces to binary operators (<=)
...
command:
sed -E "s/([[:alnum:]]) <= ([[:alnum:]])/\1 <= \2/g" -i **/*.d
sed -E "s/([[:alnum:]])<= ([[:alnum:]])/\1 <= \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) <=([[:alnum:]])/\1 <= \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
0b33b50812
Automatically add spaces to binary operators (!=)
...
command:
sed -E "s/([[:alnum:]]) != ([[:alnum:]])/\1 != \2/g" -i **/*.d
sed -E "s/([[:alnum:]])!= ([[:alnum:]])/\1 != \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) !=([[:alnum:]])/\1 != \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Sebastian Wilzbach
a2c6398332
Automatically add spaces to binary operators (==)
...
command:
sed -E "s/([[:alnum:]]) == ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]])== ([[:alnum:]])/\1 == \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) ==([[:alnum:]])/\1 == \2/g" -i **/*.d
2017-02-23 00:57:47 +01:00
Andrei Alexandrescu
30724e67d9
Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
...
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
a36cec8686
DScanner: automatially set all unattributed unittests to @safe or @system
2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
425ab667a3
Automatically set the range style from a..b -> a .. b
...
Commands:
sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595
Unify Phobos by ensuring there's always a space after cast(...)
...
Command:
sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032
Unify assert style to have no spaces between the first brace
...
Application of:
sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
a58f6cd249
Dscanner: enable check for conflicts with builtin properties
2017-02-20 14:13:57 +01:00
Sebastian Wilzbach
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Martin Nowak
7ae36bf176
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-01-15 01:30:10 +01:00
Nick Treleaven
c32a2f4eda
Remove old code - copying is allowed
2017-01-10 12:13:49 +00:00