f5d0c2af8f
Revert "Add unittest for Linux random generator"
...
Doesn't work on 32-bit.
This reverts commit c62dc4063e162cb5d05cad2a1359ebce7c4432fe.
2017-06-15 11:21:56 +02:00
c62dc4063e
Add unittest for Linux random generator
2017-06-15 11:19:50 +02:00
8c42cbfd63
Rename Vector to Array
...
For consistency with Phobos.
2017-05-16 12:12:57 +02:00
8afb552d59
mp.Integer: add two's complement constructor
2017-05-10 19:27:25 +02:00
1cb9349226
math.mp.Integer.toVector return two's complement
2017-05-09 06:27:30 +02:00
06620dc5df
math.mp.Integer: Return two's complement length
2017-05-08 21:09:52 +02:00
f2aac680c5
Fix container ctors and opAssign ref parameters
...
Container constructors and opAssign should accept any ref container and
not only const, otherwise the source container will be copied because
the constructor/opAssign without ref would be a better match.
2017-05-01 09:48:12 +02:00
65c3ca14ec
Integer storage optimization
2017-04-30 16:07:44 +02:00
4fa47153ba
Make Integer representation little endian
2017-04-25 19:50:06 +02:00
402fdfae89
math.mp: Fix initialization issues after resizing
2017-03-23 15:36:17 +01:00
7892c1a930
Remove Init template parameter from memory.resize()
2017-03-22 08:51:00 +01:00
b90517580e
Merge math.mp.Integer changes from the crypto branch
2017-03-21 19:25:12 +01:00
b90c56395c
Remove resizeArray alias
2017-03-19 06:10:27 +01:00
8e0b742748
MmapPool: Merge blocks on deallocation if possible
2017-01-05 14:25:54 +01:00
c966b42ac3
Fix FreeBSD build
2016-12-24 22:25:34 +01:00
38addb7a5b
Add support for pow for big integers
2016-12-22 21:51:16 +01:00
f7fb89fed0
Move random.d into math submodule
2016-12-22 21:50:33 +01:00
40857e69b7
Add capacity capabilities to the vector
2016-12-18 18:48:25 +01:00
c1fb89af99
Implement insertion into the vector
2016-12-15 15:00:06 +01:00
061cd6264b
Use auto ref for templated overloaded functions
2016-12-13 10:59:05 +01:00
b20f367aa8
Array support for refCounted factory function
2016-12-11 11:42:09 +01:00
a2dadda511
Fix subtraction of numbers with different signs
2016-12-08 18:30:22 +01:00
4309a30dfe
Add opBinary for the other math operations on Integer
2016-12-08 14:51:49 +01:00
9362287938
Fix error with assignin long numbers to Integer
2016-12-08 14:43:50 +01:00
c8e6d44f7b
Implement own dispose
2016-12-07 11:01:51 +01:00
f75433e0e6
Implement operations on negative numbers
2016-12-06 23:22:12 +01:00
fa607141e4
Make allocator shared and fix some RefCounted bugs
2016-12-06 21:29:08 +01:00
b3fdd6fd4a
Implement unary operation for multiple precision integers
2016-12-05 22:06:06 +01:00
86c08e7af6
Use RefCounted as math.mp.Integer internal storage
2016-12-04 22:51:21 +01:00
965ca0088e
Add multiple precision unsigned integer module
2016-11-30 20:24:51 +01:00
b752acdff7
Fix tanya.math module name
2016-11-30 16:48:46 +01:00