RazvanN7
55120ef91a
Get rid of unused variables
2017-08-22 11:00:14 +03:00
Walter Bright
ba8552a0c2
std.bigint: inure against unary - + ~ promotion rules
2017-07-26 01:27:27 -07:00
The Dlang Bot
c1832981e3
Merge pull request #5646 from WalterBright/bigint-cast
...
bigint: fix dependency on broken Issue 16997
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-07-25 01:08:38 +02:00
Walter Bright
47d9a09e66
bigint: fix dependency on broken Issue 16997
2017-07-24 15:26:07 -07: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
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
Martin Nowak
b940d0c1c7
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-05-23 20:37:35 +02:00
Jack Stouffer
629c21d45b
Link to ConvException docs in std.bigint ctor doc
2017-04-20 13:29:11 -04:00
Jack Stouffer
9e342bcc77
Fix Issue 17330 - [REG 2.072] BigInt's constructor used to be pure
2017-04-19 12:50:02 -04:00
Sebastian Wilzbach
3817d6f37d
Check public functions for public examples ( #4998 )
...
Check public functions for public examples
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-01 15:49:15 +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
87dec58a41
DStyle: Constraints on declarations should have the same indentation level
2017-02-17 07:36:23 +01:00
Steven Schveighoffer
c74537000c
Fix all windows cycles
2016-07-08 21:07:15 -04:00
Jack Stouffer
99e767b1e3
Added const and immutable to unmodified variables in std.bigint
2016-07-08 12:07:51 -04:00
Atila Neves
c45e4d4353
Add @system and @safe to std.bigint unit tests
2016-07-05 09:39:28 +02:00
Jack Stouffer
baf06a1c5e
Fixed local imports in std.bigint
2016-06-30 17:54:13 -04:00
Sebastian Wilzbach
ec47ac4224
Remove the WEB macro in favor of HTTP
...
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Sebastian Wilzbach
ca098c57d2
manual allman brace fixup
2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
1d34a121e9
apply all-man braces in Phobos
...
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
2dfbc51f17
Standardize whitespace after imports
...
Unified with:
sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
764caefa36
XREF -> REF (sed)
...
Done by:
(find . -type f -name "*.d" -print0; \
find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Vladimir Panteleev
38a6370788
Merge pull request #4303 from wilzbach/mref_phobos
...
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Jack Stouffer
9f9c5a9759
Defeat auto decoding in bigint's ctor
2016-05-19 10:04:22 -04:00
Sebastian Wilzbach
89a2dd5f11
use mref macro instead of link2
2016-05-16 03:30:08 +03:00
Dmitry Olshansky
8c3f343237
Merge pull request #3876 from JackStouffer/bigint2
...
[issue 15229] Range-ified BigInt's Ctor to Accept Ranges of Characters
2016-04-29 15:18:54 +04:00
Jack Stouffer
dd0d139831
Fix Issue 15229: Refactored BigInt code to work with character ranges
2016-04-28 09:51:24 -04:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
H. S. Teoh
6282dda407
Implement conversion of biguint to octal.
...
Carried bits in last word must be output at the end.
Add unittest for 3rd/4th word no-carry boundary.
Implement 'o' format specifier in BigInt.toString().
2016-02-25 13:30:35 -08:00
H. S. Teoh
887414b364
Delete old dead code.
2016-02-17 10:17:48 -08:00
H. S. Teoh
adc341e914
BigInt("") should not break array bounds.
...
Throws exception on empty string instead.
Update ddoc.
Also throw on invalid digit strings.
2016-02-17 10:17:48 -08:00
Brian Schott
06506e407a
Merge pull request #3725 from CyberShadow/pull-20151017-003315
...
fix Issue 15212 - BigInt should implement opCast!long and opCast!int
2015-10-17 21:43:36 -07:00
Vladimir Panteleev
9bb4da2456
fix Issue 15212 - BigInt should implement opCast!long and opCast!int
2015-10-17 03:51:52 +00:00
Dragos Carp
d698887729
Remove obsolete TypeTuple references
...
Replace following names:
std.typetuple -> std.meta
TypeTuple -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple -> Fields
std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
e10s
353c6ef72f
use if-else instead of ?:
2015-06-30 23:09:08 +09:00
e10s
9e0b10c9ae
append letterCase param to toHexString
2015-04-30 00:23:59 +09:00
e10s
ea21524544
Fix BigInt.toString with "%x"
...
Partial fix for https://issues.dlang.org/show_bug.cgi?id=14503 .
2015-04-28 19:28:12 +09:00
Walter Bright
322d138df0
correction to std.bigint doc
2015-04-25 20:22:16 -07:00
H. S. Teoh
2f128cba58
Improve std.bigint docs.
...
Fix punctuation in a few places.
Add code examples.
Document all public methods and module-global functions.
2015-03-19 14:03:12 -07:00
Denis Shelomovskij
7820bf3310
Add (mostly @nogc
) attributes to bigint
module.
...
Also add comment to `internal.math.biguintcore.fromDecimalString`.
2015-02-27 18:31:05 +03:00
Andrei Alexandrescu
9f6e1c33be
Merge pull request #2959 from e10s/patch-7
...
Fix Issue 14124 - BigInt %= int can return "-0"
2015-02-07 09:43:25 -08:00
Jakob Ovrum
6a8bcb32e9
Add @nogc attribute to several BigInt accessor functions
2015-02-07 04:03:36 +09:00
e10s
1cabeac6da
Fix Issue 14124 - BigInt %= int can return "-0"
2015-02-04 22:15:27 +09:00
qchikara
366ea76845
Fix 14081:Table in the document of std.bigint.BigInt.toString() duplicates.
...
Small fix of doc comment.
2015-01-30 18:58:37 +09:00