Commit graph

205 commits

Author SHA1 Message Date
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Martin Nowak
b0d3906d2e Merge remote-tracking branch 'upstream/stable' into merge_stable
Conflicts:
  std/bitmanip.d
2020-03-09 09:30:17 +01:00
MoonlightSentinel
84ee525ff5
Fix Issue 20639 - Some BitArray methods should be const/pure/nothrow/... 2020-03-05 20:11:37 +01:00
Bastiaan Veelo
3b665344b9
Make BitArray.count() const. 2020-03-02 17:39:11 +01:00
MoonlightSentinel
661eefd1a2
Fix Issue 20606 - Cannot cast non-mutable BitArray to void[], size_t[] 2020-02-25 03:04:51 +01:00
Adam D. Ruppe
ae93f5317c Use consistent quickindex wrapper around hand-written list-of-links tables 2020-02-21 21:04:05 -05:00
Steven Schveighoffer
f204ce7444 Mark CTFE bitmanip function for generating longs to a string as @safe and pure.
Helps with proposed DIP1028
2020-01-05 13:44:03 -05:00
MoonlightSentinel
7044e16f3b Remove deprecated BitArray.toString overload 2019-11-16 18:23:04 +01:00
Bernhard Seckinger
c268be460f Remove two duplicate unittests from std.bitmanip; 2019-10-08 17:38:21 +02:00
Vladimir Panteleev
7b0ea1db48
Clarify warning in BitArray.length 2019-09-25 08:01:50 +00:00
Vladimir Panteleev
b808e722b1
Fix Issue 20242 - BitArray constructor should not modify input data 2019-09-25 07:57:03 +00:00
Vladimir Panteleev
289149a2f1
Fix Issue 20241 - BitArray.bitsSet ignores length 2019-09-25 07:50:55 +00:00
Vladimir Panteleev
01fd74a699
Fix Issue 20240 - BitArray inconsistently preserves bits past length 2019-09-25 07:28:08 +00:00
Robert Schadek
8c43f3de63 Addes assert messages to bitmanip
Atila review
2019-07-11 08:32:47 +01:00
Mike
f14acfecb1 Replace D1 operator overloads with D2 operator overloads - Part 2 2019-07-04 17:41:14 +09:00
Mike
e0585fa785 Replace D1 operator overloads with D2 operator overloads 2019-07-04 13:33:53 +09:00
The Dlang Bot
64eac952e3
Merge pull request #7031 from n8sh/bitmanipPopcnt
Use core.bitop.popcnt in std.bitmanip.countBitsSet
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-24 21:27:23 +02:00
The Dlang Bot
2b94eb88d6
Merge pull request #7032 from n8sh/bitmanipConsolidateImpl
Pare down std.bitmanip's 13 private impl functions to 4
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-05-24 10:31:51 +02:00
Nathan Sashihara
0c376b40c4 constify scalar arguments in std.bitmanip to reduce IFTI template bloat
Fixes Issue 19899 - std.bitmanip.bitsSet should accept const arguments

This also makes `swapEndian` not propagate `const` to its return value
which is arguably an improvement
(see https://github.com/dlang/phobos/pull/6682#discussion_r213024113).
2019-05-24 03:01:38 -04:00
Nathan Sashihara
3be1b14f96 Use core.bitop.popcnt in std.bitmanip.countBitsSet 2019-05-24 02:50:13 -04:00
Nathan Sashihara
1d6e35c8a1 Pare down std.bitmanip's 13 private impl functions to 4 2019-05-24 02:45:39 -04:00
Nathan Sashihara
3578675d26 Fix Issue 19892 - Add CTFE support for std.bitmanip: nativeToBigEndian, bigEndianToNative, littleEndianToNative, nativeToLittleEndian 2019-05-23 00:44:27 -04:00
Walter Bright
b8b710f66e more scope for FormatSpec 2019-03-18 00:27:33 -07:00
Richard Palme
9d7f453f1f fixed issue 19338 2018-10-30 20:40:23 +01:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Walter Bright
33cceac7ac switch Digital Mars copyright to D Language Foundation 2018-09-05 13:49:46 -07:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Steven Schveighoffer
adaba541eb Remove version(unittest) imports to avoid extra imports in user code. 2018-04-12 15:46:56 -04:00
Martin Nowak
9fdcf660dd Merge remote-tracking branch 'upstream/stable' into merge_stable
# Conflicts:
#	std/bitmanip.d
2018-04-06 19:39:58 +02:00
Unknown
5fa727372e Fix EndianSwapper to work with qualified types 2018-04-04 18:54:44 +02:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
4754998365 Add public examples to std.bitmanip + enable DScanner check 2018-03-30 06:03:30 +02:00
Sebastian Wilzbach
3e627d263f Address review 2018-03-27 21:49:47 +02:00
Sebastian Wilzbach
1fd294378b Make more unittest public 2018-03-26 09:55:09 +02:00
Sebastian Wilzbach
8f5df8befc std.bitmanip: Remove outdated debug info + redundant static 2018-03-25 21:38:47 +02:00
crimaniak
f8fbd2976d Add error message for static assert in bitmanip.d
Static assert, checking the number of bits for a field with the type
bool, did not have an error message.
2018-03-17 13:21:59 +01:00
Jack Stouffer
7c53aa43e4 Add writer overload to BitArray 2018-03-13 15:20:41 -04:00
byebye
af539beb06 BitArray - improve constructors documentation, add examples. 2018-03-11 13:51:11 +01:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
The Dlang Bot
6264e40d8a
Merge pull request #6110 from byebye/issue_18134
Fix issue 18134 - BitArray right shift broken if length is multiple of 8*size_t.sizeof
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-06 20:14:04 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
carblue
de8db50485 std.bitmanip.d - fix a -dip1000 compilable issue; trivial 2018-02-14 17:41:39 +01:00
byebye
b211347454 Fix issue 18134 - BitArray right shift broken if length is multiple of 8*size_t.sizeof 2018-02-02 19:18:49 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jack Stouffer
dc291a16e4 Changed all instances of FormatSpec to const ref 2018-01-04 10:05:16 -05:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +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
Alexandru Caciulescu
997eb62299 Fix Issue 17467 - BitArray are broken with <<= 64 2017-11-07 17:39:31 +02:00
The Dlang Bot
b147252785
Merge pull request #5634 from RazvanN7/Issue_1998
Fix Issue 1998 - std.bitarray should have setAll / opSliceAssign
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-10-30 11:49:38 +01:00
RazvanN7
7a37001359 Fix Issue 4717 - std.bitmanip.BitArray changes 2017-08-25 16:50:25 +03:00