Marco Nembrini
3bb400d492
Decommented unittest that was blocked by bug 6354, which has since been fixed.
2012-12-28 00:10:15 +11:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
Daniel Murphy
9c50d1c72f
Remove variable shadowing in std.bitmanip
2012-10-28 21:55:30 +11:00
Kozzi11
b15c4205da
Fixes Issue 8876 - bitfields template generate wrong code
2012-10-24 00:06:25 +02:00
alexrp
d913e07fc5
hash_t -> size_t.
2012-10-15 04:45:17 +02:00
nazriel
72ade9efec
Add other types to peek & family
2012-09-17 12:46:39 +00:00
alexrp
85c1f161c0
Adding myself as author to the modules I have contributed to.
...
This is just me committing to maintain my code additions to
these modules. We should, in general, use these author lists
more so we know who's responsible for the various modules.
2012-07-16 05:31:09 +02:00
Matthias Walter
cf08b3e51a
Made BitArray.toHash pure.
2012-06-25 08:34:09 +02:00
Matthias Walter
e99d6cf04a
Reverted change in opCmp signature.
2012-06-22 08:42:42 +02:00
Matthias Walter
eb46d99217
Added to BitArray in std.bitmanip:
...
- const modifiers
- const versions of opApply
- toHash method
- return value for length setter.
2012-06-08 21:34:01 +02:00
jmdavis
9cf1eea338
Added checks to verify indices.
2012-06-07 01:27:25 -07:00
jmdavis
b36b6469e1
Made it possible to give endianness to peek, read, write, and append.
2012-06-06 20:39:50 -07:00
jmdavis
5e24378271
Added peek, read, write, and append to std.bitmanip.
...
These functions make it easier to manipulate buffers of ubytes which are
meant to be parsed or written to as sequences of larger integral types.
They assume that the buffers hold their data in big endian.
2012-06-06 02:21:33 -07:00
alexrp
aaaca447cc
Make generated accessor for bitfields @safe pure nothrow.
2012-05-13 23:14:06 +02:00
alexrp
5abc66aec1
Fix overloads of opCast() on BitArray.
2012-03-20 18:32:16 +01:00
alexrp
d70f621afd
Allow casting BitArray to size_t[].
2012-03-19 02:58:33 +01:00
alexrp
4f8b530ba6
More improvements/fixes to BitArray docs.
2012-03-18 00:17:57 +01:00
alexrp
95da96d352
A few improvements to BitArray docs.
2012-03-17 13:06:50 +01:00
Walter Bright
8cfc0d232b
'is' doesn't work for signalling/quiet nan comparison
2012-01-10 00:03:14 -08:00
Walter Bright
380ae65511
remove empty statements
2011-12-29 00:05:45 -08:00
alexrp
cf9ddf9836
Drop unnecessary version statement and use size_t.sizeof * 8 instead.
2011-11-28 10:21:51 +01:00
alexrp
6460899b8a
Use D_LP64 to make bitness-based decisions, not X86(_64).
2011-11-27 16:11:23 +01:00
jmdavis
2d3dc6fabe
Made it so that the endian swapping functions work with bool.
2011-08-13 20:05:29 -07:00
Andrei Alexandrescu
dc6c28330c
Merge pull request #166 from 9rnsr/bitmanipProperty
...
Add @property to std.bitmanip
2011-08-08 08:34:18 -07:00
dawg
a91d837754
avoid collision of store name with accessors in single member bitfield
2011-08-08 16:35:42 +02:00
k-hara
15e0e30f17
Merge branch 'master' into bitmanipProperty
...
Conflicts:
std/bitmanip.d
2011-08-02 05:12:50 +09:00
k-hara
9780a8bee2
Fix tabs.
2011-08-02 00:27:12 +09:00
k-hara
a4e23d4b2d
Add @property annotation for bitfields and BitArray members.
2011-08-02 00:14:09 +09:00
jmdavis
8167a7aedb
Fix test breakage due to bug# 6354.
...
http://d.puremagic.com/issues/show_bug.cgi?id=6354
The test in question should be re-enabled once 6354 has been fixed.
2011-07-31 19:10:18 -07:00
jmdavis
9698cd62dc
Some improvements based on review suggestions.
...
real has been removed, since it makes no sense to swap it if you can't
guarantee that real is the exact same size of the the machine that it's
being passed to.
2011-07-22 22:39:52 -07:00
jmdavis
09f2937aa8
Added functions for swapping endianness to std.bitmanip.
2011-07-22 00:48:15 -07:00
Andrei Alexandrescu
d061f13d34
https://github.com/D-Programming-Language/phobos/pull/23
2011-05-01 12:11:46 -05:00
Walter Bright
046e1b36db
add source links
2011-02-06 15:46:50 -08:00
Brad Roberts
f368104f37
A bunch of 64 bit fixes, including disabling tests that don't pass
2010-12-23 20:39:22 +00:00
Walter Bright
b802a9af01
replace template with CTFE function
2010-12-20 08:30:16 +00:00
Brad Roberts
a1d52bdc2b
Add support for MODEL=64 to the posix.mak file.
...
Fix a couple 64 bit issues.
2010-12-04 08:31:35 +00:00
Don Clugston
84477a5d3e
Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output.
2010-11-24 19:34:47 +00:00
Andrei Alexandrescu
3f2b8c12ea
64-bit compatibility work
2010-08-22 20:55:22 +00:00
Masahiro Nakagawa
cab2b77249
opApply's delegate needs to be 'scope' for avoiding heap allocation
2010-05-18 10:58:01 +00:00
Masahiro Nakagawa
a288172908
Add @property to length method.
2010-05-04 21:54:00 +00:00
Walter Bright
d340dab9f3
inout to ref
2009-12-19 07:46:41 +00:00
Walter Bright
1b0d9811c3
fix opEquals type
2009-11-22 08:38:36 +00:00
Sean Kelly
747f3cf1e4
Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
...
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Walter Bright
cf644a325a
add shared
2009-05-08 05:00:12 +00:00
Andrei Alexandrescu
02a90ee461
* Bitfields of length 0 are defined to be always 0.
...
* The read functions for bitfields are const.
2009-04-06 05:49:25 +00:00
Andrei Alexandrescu
35181b91c9
Added 'name'_min and 'name'_max for all bitfields. Added range asserts to avoid loss in assignment.
2009-01-23 15:45:35 +00:00
Andrei Alexandrescu
89df33f769
Added 'name'_min and 'name'_max for all bitfields. Added range asserts to avoid loss in assignment.
2009-01-23 14:57:16 +00:00
Walter Bright
3d1b760496
update to reflect this is now a reference type
2008-11-04 22:08:40 +00:00
Walter Bright
52686b0f17
change opEquals to return bool
2008-06-25 06:25:40 +00:00
Andrei Alexandrescu
1ae5300f52
* std.algorithm: Changed the map() function so that it deduces the return type
...
* std.contracts: Added file and line information to enforce. Added errnoEnforce that reads and formats a message according to errno. Added corresponding ErrnoException class.
* std.encoding: For now commented out std.encoding.to.
* std.file: Fixed bug 2065
* std.format: Fixed bug in raw write for arrays
* std.getopt: Added new option stopOnFirstNonOption. Also automatically expand dubious option groups with embedded in them (useful for shebang scripts)
* std.math: improved integral powers
* std.md5: Improved signature of sum so it takes multiple arrays. Added getDigestString.
* std.path: changed signatures of test functions from bool to int. Implemented rel2abs for Windows. Improved join so that it accepts multiple paths. Got rid of some gotos with the help of scope statements.
* std.process: added getenv and setenv. Improved system() so it returns the exit code correctly on Linux.
* std.random: added the dice function - a handy (possibly biased) dice.
* std.file: added support for opening large files (not yet tested)
* std.utf: added the codeLength function. Got rid of some gotos.
2008-05-06 05:08:52 +00:00