Commit graph

190 commits

Author SHA1 Message Date
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
RazvanN7
876e4ccd0e Fix Issue 1998 - std.bitarray should have setAll / opSliceAssign 2017-08-15 13:31:21 +03:00
Walter Bright
fd69d85c6e bitmanip - inure against integral promotion changes 2017-07-24 20:10:24 -07:00
RazvanN7
24080dfe95 Fix Issue 1998 - std.bitarray should have setAll / opSliceAssign(bool) etc 2017-07-20 13:36:08 +03: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
H. S. Teoh
6111a6cb37 Fix issue 17247. 2017-03-08 12:36:13 -08:00
Sebastian Wilzbach
62249e99ec [BOOKTABLES]: Add BOOKTABLE to std.bitmanip 2017-03-01 22:20:08 +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
Jonathan M Davis
130714acdd Move deprecations along. 2017-01-24 03:08:10 -08:00
Sebastian Wilzbach
18ecb6b72c Make more modules publicly runnable on dlang.org 2017-01-06 23:29:55 +01:00
Sebastian Wilzbach
0c822434cb Merge pull request #4509 from JohanEngelen/outofboundshift
Fix undefined behavior of BitsSet.popFront() upon aggressive optimization
2017-01-04 13:16:58 +01:00
Walter Bright
18396218f0 bitmanip: missing a 'return' attribute 2016-08-24 22:06:03 -07:00