Commit graph

127 commits

Author SHA1 Message Date
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
Alex Rønne Petersen
5b1aa8bf45 Merge pull request #1861 from jpf91/arm-3
[ARM] Fix phobos unit tests
2014-01-25 07:27:41 -08:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
Johannes Pfau
8b124e461c [ARM] Fix phobos unit tests 2014-01-15 16:31:25 +01:00
monarchdodra
44fe3d88f7 Remove tabs 2014-01-08 08:37:52 +01:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
Simen Kjærås
8412f4d37a Removed unnecessary allocations in twosComplement call. 2013-12-14 20:08:43 +01:00
Simen Kjærås
92560323dd Got rid of expensive AddOrSubInt call (and related allocation). 2013-12-14 19:54:18 +01:00
Simen Kjærås
56ab3796ce Merge branch 'master' of https://github.com/D-Programming-Language/phobos
Conflicts:
	std/bigint.d
2013-12-05 10:53:12 +01:00
H. S. Teoh
8f132413dd Fix issue 11583.
The problem is that the assumption that the first word of a BigUint is
always non-zero is false when BigUint == biguintcore.ZERO, which is
defined to be [0]. So we need to check for that case in
BigUint.opCmp(ulong).

Also, crash-proof BigUint's invariant, since it would cause an
out-of-bounds array access if a bug causes data.length==0.
2013-12-04 22:28:23 -08:00
monarch dodra
04c43ce00b Merge pull request #1731 from quickfur/issue11600
Fix issue 11600: to!BigInt(string) should validate input.
2013-12-03 17:13:28 -08:00
Daniel Murphy
a11a20ef74 Remove more uses of NCEG operators in phobos 2013-11-30 14:09:39 +11:00
H. S. Teoh
1945bcacf8 Fix issue 11600: to!BigInt(string) should validate input. 2013-11-27 18:43:06 -08:00
Simen Kjærås
52fc3fb3e6 Fixed compilation errors on 64-bit platforms (hopefully) 2013-11-27 09:21:01 +01:00
Simen Kjærås
ed5a286826 Removed unnecessary allocation and computation 2013-11-26 17:50:44 +01:00
Simen Kjærås
6aea683103 Fix 8167 (identity constructor) and 9061 (bitwise ops) 2013-11-26 01:41:45 +01:00
monarch dodra
9a93d82e99 Merge pull request #1679 from BioTronic/master
BigInt const (Fixes 11148 and parts of 11188)
2013-11-18 01:29:53 -08:00
Brad Roberts
01be956412 Merge pull request #1696 from dawgfoto/fix11112
fix Issue 11112 - Unable to execute shell commands in different threads
2013-11-17 23:04:50 -08:00
Daniel Murphy
4806357623 Fixup for issue 11532 2013-11-17 23:16:31 +11:00
Martin Nowak
17e5cc91a7 fix Issue 11112 - Unable to execute shell commands in different threads
- the environPtr initializer was only called for the main thread
2013-11-17 02:29:00 +01:00
unknown
536dd1ceea More fixes. 2013-11-04 14:46:09 +01:00
unknown
862f8a0ada Fixed template constraints in biguintcore. 2013-11-04 14:36:32 +01:00
Simen Kjærås
48ca747ddf Fixed wrong placement of unittest in pull 1679 2013-11-03 03:03:10 +01:00
Simen Kjærås
3cd19ed494 More fixes for pull 1679 2013-11-02 16:08:07 +01:00
Simen Kjærås
0bf6df0cd8 Fix error inpull 1679 2013-11-02 11:09:19 +01:00
Simen Kjærås
8dc07ba85e BigInt const (Fixes 11148 and parts of 11188) 2013-11-02 02:27:23 +01:00
Dmitry Olshansky
87bff6186c split off rarely used unicode tables
This avoids parsing large files reducing parse time by 30 ms for me
(it took ~70ms to parse tables, now ~40ms).
And move hangul sets to Trie tables as well.
Also saves around 30Kb on "hello world" app.
2013-10-17 18:49:11 +04:00
Martin Nowak
5cecc7622d smaller executables
- Move all tables into functions or structs so that
  dmd's multilib will put them into separate archive
  objects. This allows the linker to only pick the
  tables that are actually used.
2013-10-16 09:03:53 +02:00
Walter Bright
5b5b5bbb68 Merge pull request #1636 from dawgfoto/issue10866
make case tables immutable
2013-10-15 13:54:10 -07:00
k-hara
644e11ea46 fix Issue 9665 - Structure constant members can not be initialized if have opAssign 2013-10-14 21:42:26 +09:00
Martin Nowak
26edfc624f deduplicate CodepointTries and leave the data in libphobos2.a
- Store the static immutable CodepointTries in separate functions.
2013-10-14 00:38:30 +02:00
Martin Nowak
f9e7a93d93 store other immutable tables in unicode_tables
- This is mainly for consistency with other tables.
2013-10-13 22:54:16 +02:00
Martin Nowak
45c873faf3 make case tables immutable
- Avoids redundant object copies and semantic
  analysis for every usage.

- Multilib archives or gc-sections will take care
  of the binary size issue.
2013-10-13 20:50:40 +02:00
Dmitry Olshansky
5ce8a6d538 tweak unicode_tables.d and related code to avoid CTFE in generated tables 2013-10-13 12:28:34 +04:00
Dmitry Olshansky
9df179b65d fix issue 11057 [REG2.064dev] New std.uni has icmp() partly broken 2013-09-22 12:00:04 +04:00
Dmitry Olshansky
256b62b370 fix issue 11089 toUpper doesn't work with 1:m mappings
Also fixes a typo in generic toCase, adds test cases for
previously fixed issue 9629
2013-09-22 11:52:27 +04:00
ibuclaw
88b44697bb Fixup std.math unittests for new math implementations. 2013-08-18 16:28:16 +01:00
Jonathan M Davis
c109594456 Merge pull request #1347 from blackwhale/new-std-uni
New std.uni module
2013-08-08 00:28:29 -07:00
Dmitry Olshansky
9a053d97c2 new std.uni module 2013-07-20 23:00:34 +04:00
H. S. Teoh
8411eaa6b4 Expand tab. 2013-07-15 07:49:15 -07:00
H. S. Teoh
658a6d648d Use typeid.getHash instead of rt.util.hash.hashOf which is not
accessible from outside druntime.
2013-07-09 07:12:11 -07:00
H. S. Teoh
70d4c03fe2 Fix issues 8435, 10118. 2013-07-09 07:12:11 -07:00
k-hara
03a32d6fa4 Fix issue 313 & 314 2013-06-25 08:38:30 +09:00
Andrei Alexandrescu
e54288b6b7 Merge pull request #1231 from Safety0ff/master
Fix std.BigInt bug #9548 plus other new discovered bugs.
2013-05-25 23:36:32 -07:00
Robert BuRnEr Schadek
cab595ec0f bigint pure
the only exception is toString as it takes a delegate and this makes
things more tricky
2013-05-10 05:23:44 +02:00
Robert BuRnEr Schadek
0bf5632e80 Merge branch 'master' into bigintpure
Conflicts:
	std/bigint.d
2013-05-09 06:40:26 +02:00
Robert BuRnEr Schadek
a686647f54 bigint purity 2013-05-09 06:24:26 +02:00
safety0ff
202d182152 Fix std.BigInt bug #9548 plus other new discovered bugs. 2013-04-08 23:24:30 -04:00
kai
8f34d9a05e Fix big endian issue in std.internal.math.biguintcore.d
The unit tests passes with this change on Linux/PPC64.
2013-04-07 14:55:29 +02:00
safety0ff
835fca54e9 BigInt enhancement: make std.math.abs work with BigInt (issue 6486) 2013-03-31 18:54:15 -04:00