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
Daniel Green
58f4356ca2
Change version( Win32 ) to version( Windows ) when Win64 would be supported as well.
2012-01-16 22:10:18 -05:00
k-hara
7dcb93621d
Supplemental change of issue 3382 - [tdpl] Implement uniform function call syntax
2011-12-26 22:57:49 +09:00
Walter Bright
add73f61ea
try again to get it to work for 64 bits
2011-12-07 23:44:01 -08:00
Walter Bright
4cf3a6e91c
would not compile for 64 bits
2011-12-07 22:30:14 -08:00
Don Clugston
b828057506
BigInt: uint->size_t in nonasm primitives
...
Causes incorrect results for bigints larger than 2^^34 bytes long.
2011-12-07 10:09:04 +01:00
David Nadlinger
cabdd80769
Make extra std.internal.uni test -property compliant.
...
This was not caught before the merge because the test was disabled until commit eb4bd2bc73
.
2011-12-04 22:01:05 +01:00
David Nadlinger
e312f9898b
Strict @property syntax compliance.
...
This enables the test suite to build with the -property switch enabled.
std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
David Simcha
4b08ebd45a
Merge pull request #334 from blackwhale/assert-regex
...
Fixing new std.regex
2011-12-02 16:00:21 -08:00
Dmitry Olshansky
eb4bd2bc73
std.regex: assertion on wrong escapes inside []
...
also enable extra test in std.internal.uni
2011-11-27 13:45:15 +04:00
Brad Roberts
3980990974
fix 32 vs 64bit-ism in bituintcore.d
2011-11-26 14:42:31 -08:00
k-hara
1eba4fa9bb
Fix std/internal/uni for Posix unit test breaking
2011-11-14 19:15:52 +09:00
Dmitry Olshansky
f25319b3b0
replace std.regex with FReD
2011-11-01 01:15:51 +04:00
Don Clugston
1b6bb96de7
Add more comments for Biguint.pow
...
The memory usage calculation was complicated and deserved more explanation.
I've also rewritten it in a way which is clearer.
2011-10-20 15:13:50 +02:00
Don Clugston
c0b25d0903
6819 BigInt ^^ fails for some big numbers (powers)
...
I've also greatly improved the comments for pow.
2011-10-18 15:00:24 +02:00
Jonathan M Davis
11dbf95b87
Merge pull request #276 from 9rnsr/regwide
...
Improve std.windows.registry and fix datetime unit test
2011-10-06 23:40:07 -07:00
jmdavis
6f9e0b98ed
Fix circular dependency on Mac OS X.
2011-10-03 21:13:34 -07:00
k-hara
c9c8e594db
Move static ctor/dtor into internal module to avoid cycle dependency.
2011-10-03 03:55:51 +09:00
k-hara
c5c1c0dbbf
detab/entab
2011-09-02 20:56:40 +09:00
jmdavis
302323559a
Revert "not really pure"
...
This reverts commit 4f28db6ffb
.
Since Walter put weakly pure back in, these changes need to be undone.
Conflicts:
std/datetime.d
2011-07-07 01:40:07 -07:00
Walter Bright
4f28db6ffb
not really pure
2011-06-25 19:58:09 -07:00