Commit graph

236 commits

Author SHA1 Message Date
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
Andrei Alexandrescu
7cd7fe5de3 Simplified code generated for bitfields and improved error message. 2008-03-06 20:08:39 +00:00
Andrei Alexandrescu
29f3cc23f7 std.math: minor change in approxEqual.
std.contracts: added functions pointsTo()

std.numeric: minor unittest fixes.

std.bitmanip: fixed code bloat issue, reintroduced FloatRep and DoubleRep.

std.conv: minor simplification of implementation.

std.regexp: added reference to ECMA standard in the documentation.

std.getopt: changed return type from bool to void, error is signaled by use of exceptions.

std.functional: added unaryFun, binaryFun, adjoin.

std.string: updated documentation, changed code to compile with warnings enabled.

std.traits: changed FieldTypeTuple; added RepresentationTypeTuple, hasAliasing; fixed bug 1826; added call to flush() from within write; fixed unlisted bug in lines().

std.algorithm: added map, reduce, filter, inPlace, move, swap, overwriteAdjacent, find, findRange, findBoyerMoore, findAdjacent, findAmong, findAmongSorted, canFind, canFindAmong, canFindAmongSorted, count, equal, overlap, min, max, mismatch, EditOp, none, substitute, insert, remove, levenshteinDistance, levenshteinDistanceAndPath, copy, copyIf, iterSwap, swapRanges, reverse, rotate, SwapStrategy, Unstable, Semistable, Stable, eliminate, partition, nthElement, sort, schwartzSort, partialSort, isSorted, makeIndex, schwartzMakeIndex, lowerBound, upperBound, equalRange, canFindSorted.

std.thread: fixed so it compiles with warnings enabled.

std.file: made getSize() faster under Linux.

std.random: fixed so it compiles with warnings enabled; improved function uniform so it deduces type generated from its arguments.

std.format: added fixes to make formatting work with const data.

std.path: minor documentation changes.
2008-02-19 07:00:56 +00:00
Brad Roberts
97002975bb dos -> unix line ending conversion
fix up properties on relatively new files to keep the right line endings
remove the executable bit from std/getopt.d
2008-02-10 08:44:17 +00:00
Walter Bright
545d9fac69 removed bloat-inducing declarations 2008-01-02 06:08:32 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00