dkorpel
037cf197e3
use put for outputrange
2019-12-14 12:17:02 +01:00
dkorpel
5ad491a451
make std.bigint @safe
2019-12-14 11:54:05 +01:00
The Dlang Bot
f8196e626f
Merge pull request #7184 from WalterBright/bigintError
...
bigint.d: replace Error with assert()
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-09-13 10:11:37 +02:00
Walter Bright
b1638b116b
bigint.d: replace Error with assert()
2019-09-12 23:21:37 -07:00
Nathan Sashihara
ce3e7f6dbb
Fix Issue 20147 - Enable comparison (==, >, >=, <=, <) between std.bigint.BigInt and floating point numbers
2019-09-05 22:41:08 -07:00
Robert Schadek
312006cc46
Addes assert messages to bigint
2019-07-10 10:46:56 +01:00
Mike
e0585fa785
Replace D1 operator overloads with D2 operator overloads
2019-07-04 13:33:53 +09:00
shove
e962cc7ec5
Add powmod() for BigInt operands.
2019-05-24 19:55:56 +08:00
Basile Burg
7bf6a6d0d1
fix issue 19883 - Cyclic constructor call for BigInt(dstring)
2019-05-19 04:36:20 +02:00
shove70
4bb550d206
Fixes #19740 : Incorrect result of BigInt * BigInt.
2019-04-21 08:41:33 +08:00
Walter Bright
b8b710f66e
more scope for FormatSpec
2019-03-18 00:27:33 -07:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Biotronic
dd371c19ac
Added divMod function to std.bigint
2018-01-28 14:24:15 +01:00
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
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
Markus F.X.J. Oberhumer
1115ccb219
Fix issue 18224 - BigInt modulo uint must return long.
2018-01-12 18:37:16 +01:00
Jack Stouffer
aa995a6ff9
Made BigInt.opCast pure
2018-01-04 15:05:25 -05:00
Jack Stouffer
163b7db94b
Fix BigInt.toString overload
...
See https://github.com/dlang/phobos/pull/5991#issuecomment-355122818 for more information
2018-01-03 16:05:59 -05:00
Jack Stouffer
dae55d039c
Fix Issue 17249: Added BigInt.getDigit
2018-01-03 13:22:02 -05:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
...
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876
Use static foreach in Phobos
2018-01-03 17:30:11 +01:00
Jack Stouffer
edf6a75fcb
Markdown-ify BigInt's docs
2018-01-03 11:29:37 -05:00
Biotronic
0dac2105eb
Turned BigInt.toDecimalString pure
2017-12-10 11:46:14 +00:00
Martin Nowak
18c19d8527
Merge pull request #5715 from yosupo06/Issue_16264
...
Fix Issue 16264(+11599) - BigInt multiplication crashes on 64-bit
2017-10-28 15:22:08 +02:00
Kohei Morita
93ee606fba
Fix Issue 16264(+11599) - BigInt multiplication crashes on 64-bit
2017-08-31 20:59:03 +09:00
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