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
Walter Bright
e422fb7e9c
fix int overflow
2013-03-26 21:21:24 -07:00
Martin Nowak
4a6af4e42e
workaround Bug 9378
...
- SHA1 asm is broken for PIC
2013-01-24 03:16:26 +01:00
Andrei Alexandrescu
540e84f214
Merge pull request #1006 from monarchdodra/internalunisave
...
Changing ByCodepoint's "save" signature
2012-12-23 20:06:48 -08:00
Andrei Alexandrescu
7086e08d2a
Merge pull request #918 from jerro/upstream-master
...
Fixed a bug in gammaIncompleteCompl
2012-12-13 08:58:30 -08:00
monarch dodra
6e5b1d0b92
Changing ByCodepoint's "save" signature
...
1) Because if it returns a ref, then it isn't actually saving anything...
2) Changed the "const" qualifier to inout: Using "const" means the return type is always "const ByCodepoint", which isn't a valid range (a const range can't be popped)
The change is mostly moot, since it would appear ByCodepoint's save or forwardness is never used anyways. But that doesn't mean it shouldn't be correct.
2012-12-12 20:19:05 +01:00
Alex Rønne Petersen
dd463ada9d
Merge pull request #807 from redstar/sha1_ssse3
...
Add SSSE3 implementation to SHA1 digest.
2012-12-10 12:21:50 -08:00
Dmitry Olshansky
0f2947d4d1
bugfixes for compile-time regex
...
fix issue 8725
fix issue 8349
2012-12-01 00:37:32 +04:00
k-hara
01df2f60be
Remove redundant parenthesis for getters, and use assignment syntax for setters
2012-11-23 15:07:17 +09:00
Jernej Krempuš
f880870009
Added igammaTemmeLarge to std.internal.math.gammafunction.
2012-11-23 03:00:43 +01:00
kai
4592361e06
Add SSSE3 implementation to SHA1 digest.
2012-11-21 19:44:01 +01:00
Jonathan M Davis
b20c31dbfe
Merge pull request #870 from alexrp/hash_t
...
hash_t -> size_t.
2012-10-15 03:13:34 -07:00
alexrp
d913e07fc5
hash_t -> size_t.
2012-10-15 04:45:17 +02:00
alexrp
b202180295
Remove all uses of sizediff_t in favor of ptrdiff_t.
2012-10-15 04:24:09 +02:00
Andrei Alexandrescu
609aefacf6
Merge pull request #642 from donc/bigint7993div
...
Bigint7993div
2012-07-01 19:50:17 -07:00
dawg
de237ec719
reduce unittest runtime
...
- use random sampling of codepoint sets
- save and print random seed for reproducibility
- add new unittest for ByCodepoint
- 12s => 4ms
2012-06-28 08:11:27 +02:00
Don Clugston
15c655f1b5
Fix issue 8164 BigInt from char[] too
2012-06-22 07:05:06 +02:00
Don Clugston
a79bb20ea7
Fix issue 7993 BigInt divide-by-1 error
...
Thanks to c.m.brandeburg for the fix.
2012-06-21 18:36:22 +02:00
Karl Broman
11f02dbfd1
Merge branch 'master' into patch-1
2012-05-21 06:18:19 -05:00
Karl Broman
320c92d355
Change second paramater of gammaIncompleteComplInverse from x to p
...
- more meaningful for it to be p rather than x
- also, this matches the corresponding internal function in
std.internal.math.gammafunction
- revise comments to match
2012-05-21 06:10:34 -05:00
Dmitry Olshansky
ab611521fa
quick shot at ctRegex issue 7740
...
Stopped by issue 6419 "CTFE nested structs ... not implemented"
2012-04-19 19:54:51 +04:00
Dmitry Olshansky
ba5eecf086
clean up CTFE, workarounds--
2012-03-23 12:17:20 +04:00
Walter Bright
17fd52dc00
make it pure, etc.
2012-03-11 00:36:49 -08:00
Daniel Murphy
b9ad889cf3
real.min -> real.min_normal
2012-02-06 00:58:11 +11:00