berni44
6f2a0934a7
Adapt imports of std.format to new structure of std.format.
2021-03-19 13:22:00 +01:00
Razvan Nitu
3330ff6ad9
Merge pull request #7799 from berni44/issue_21634
...
Fix 21634 - std.bitmanip: bitfields may generate invalid variable
2021-02-23 04:02:37 +08:00
berni44
2983202b1c
Fix issues 21635, 21636:
...
std.bitmanip: bitfields should produce better error messages with wrong parameters
std.bitmanip: bitfields size of bitfield should be checked against size of used type
2021-02-16 14:02:03 +01:00
berni44
88496f733a
Fix 21634 - std.bitmanip: bitfields may generate invalid variable
2021-02-16 11:28:04 +01:00
berni44
1b7ef49426
Improve documentation and errormessage of bitfields.
2021-02-15 15:26:39 +01:00
berni44
52a06297f8
Tidy up unittests.
2021-02-13 02:48:16 +01:00
Nathan Sashihara
b3978d0a2f
Fix Issue 21430 - Add const
to front, save, & length properties of range returned by std.bitmanip.bitsSet
2020-11-28 20:00:16 +01:00
Nathan Sashihara
fe1deb2f84
Fix a few places where opDollar could be an alias of length
2020-11-11 02:09:56 +01:00
Andrei Alexandrescu
42138c021c
Replace Unqual-based idiom with immutable-based idiom ( #7576 )
...
Replace Unqual-based idiom with immutable-based idiom
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2020-08-04 04:32:14 +02:00
Walter Bright
76caec12f4
bitmanip: make use of new byteswap() function
2020-07-08 13:25:24 +02:00
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
const
ify 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