Commit Graph

123 Commits

Author SHA1 Message Date
Alex Dyachenko
c9ff85fc13 Switched MPIR.Net HugeInt.ToDouble(out exp) method to use mpz_get_2exp_d instead of mpz_get_d_2exp 2019-06-28 14:51:15 -04:00
Alex Dyachenko
0aacd623e9 Fixed MPIR.Net unit tests 2019-06-28 12:18:50 -04:00
Alex Dyachenko
5aab0cf7b0 Corrected mpf_get_2exp_d on Win64 when the exponent in limbs fits in mp_bit_cnt but the exponent in bits (as returned by this API) does not 2019-06-28 12:18:19 -04:00
Alex Dyachenko
36cdf4ad96 MPIR.Net CompareTo updated to use mpf_cmp_z for mixed float/int comparisons 2019-06-24 17:48:13 -04:00
Alex Dyachenko
9c5740fe53 Added MPIR.Net VS2019 solution 2019-06-23 16:49:30 -04:00
Alex Dyachenko
4f4a9b0b2f Minor updates in MPIR.Net solution file headers 2019-06-23 16:49:16 -04:00
Alex Dyachenko
deadf3c3ba Corrected MPIR.Net build events for the new folder structure 2019-06-23 15:56:47 -04:00
Alex Dyachenko
0d674b51a4 Removed MPIR.Net VS2012 solution 2019-06-23 15:42:11 -04:00
Alex Dyachenko
3f022af01c Renamed MPIR.Net build folders to follow MPIR folder naming convention 2019-06-23 15:41:27 -04:00
Alex Dyachenko
1d485140eb Fixed configuration check in MPIR.Net pre-build events 2019-06-23 15:32:48 -04:00
Alex Dyachenko
e10eae8371 Implemented Read/Write/Modify limbs methods in MPIR.Net based on the new mpz_limbs_xxx functions 2017-07-11 11:19:48 -04:00
Alex Dyachenko
0e0b85f0af MPIR.Net - resolved build warnings 2017-05-13 21:18:43 -04:00
Alex Dyachenko
24f971fbc9 MPIR.Net - fixed version-related tests 2017-05-13 20:52:10 -04:00
Alex Dyachenko
ef890647eb MPIR.Net - Added a platform/configuration check to ensure the build uses the same environment as the most recent MPIR build 2017-05-13 20:49:42 -04:00
Alex Dyachenko
d925a1cdde MPIR.Net - changed type of exponent returned from conversions to a double on Windows x64 2017-05-13 20:46:25 -04:00
Alex Dyachenko
b9015ba9dd MPIR.Net - added VS2017 build files 2017-05-13 20:43:16 -04:00
Alex Dyachenko
1654d050b0 MPIR.Net - changed Swap methods to call the native implementations. 2016-06-08 20:41:18 -04:00
Alex Dyachenko
e654555250 MPIR.Net - Added missing ToUint/ToInt conversions for 32-bit builds 2016-06-08 11:29:02 -04:00
Alex Dyachenko
1086a9172a MPIR.Net documentation: Rationals section added 2016-06-07 10:37:01 -04:00
Alex Dyachenko
05c71611a9 Moved MPIR.Net-specific symbols from gmp-h.in to gmp-impl.h. Added comments in inp_raw.c and out_raw.c to document the changes. 2016-03-28 09:23:58 -04:00
Alex Dyachenko
a2cd5af9cd Refactored addmul/submul implementation 2016-01-19 11:31:11 -05:00
Alex Dyachenko
6a29b4ae27 Minor refactoring of type checking code 2016-01-19 11:28:24 -05:00
Alex Dyachenko
bd0da54f7e Redefined MPIR.Net addition and subtraction assignment to use addmul/submul when applicable 2016-01-18 21:45:21 -05:00
Alex Dyachenko
65aba6b72f Updated ReadMe to inticate both Win32 and x64 are supported. 2016-01-18 11:07:48 -05:00
Alex Dyachenko
1d3d9f2305 Adjusted references to source files in relocated MPIR.Net projects 2016-01-18 09:37:50 -05:00
Alex Dyachenko
a036c041cd Moved MPIR.Net files 2016-01-18 09:26:11 -05:00
Alex Dyachenko
4242b5e2bb Updated unit tests to work on Win32 as well as Win64 2016-01-14 14:07:20 -05:00
Alex Dyachenko
3a013867a1 Added several constants to MpirSettings and unit tests for all MpirSettings members 2016-01-12 09:26:23 -05:00
Alex Dyachenko
6da13eeb87 Updated XML comments 2016-01-11 14:48:18 -05:00
Alex Dyachenko
d5c8fb1d82 Updated XML comments 2016-01-09 15:56:42 -05:00
Alex Dyachenko
59aabe3eca Added HugeInt.AllocatedSize and HugeFloat.AllocatedPrecision properties 2016-01-09 15:55:05 -05:00
Alex Dyachenko
9870b4d812 Implemented precision-of-destination for Float calculations where possible 2015-12-24 10:57:07 -05:00
Alex Dyachenko
d895d98428 Updated XML documents to match MPIR 2.7.2 documentation, and added mixed comparisons between rationals and integers based on the new mpq_cmp_z function. 2015-12-23 14:29:26 -05:00
Alex Dyachenko
b006a3b4d9 Upgraded MPIR.Net solution to VS2013. Cleaned up all compiler warnings. 2015-12-23 09:10:58 -05:00
Alex Dyachenko
7f148ac675 Comments cleaned up 2015-12-22 15:43:35 -05:00
Alex Dyachenko
97a8cc896d Fixed unit tests broken after the merge. 3 tests broken due to MPIR behavior (FitsUxxx returns false for -0.9) 2015-05-23 20:36:51 -04:00
Alex Dyachenko
3ec06bfc51 Merge branch 'master' of github.com:adyache/mpir
Conflicts:
	mpir.net/mpir.net-tests/HugeFloatTests/Arithmetic.cs
	mpir.net/mpir.net-tests/HugeFloatTests/Assignment.cs
	mpir.net/mpir.net-tests/HugeFloatTests/Comparisons.cs
	mpir.net/mpir.net-tests/HugeFloatTests/ConstructionAndDisposal.cs
	mpir.net/mpir.net-tests/HugeFloatTests/Conversions.cs
	mpir.net/mpir.net-tests/HugeFloatTests/ExpressionTests.cs
	mpir.net/mpir.net-tests/HugeFloatTests/IO.cs
	mpir.net/mpir.net-tests/Utilities/Accessors.cs
	mpir.net/mpir.net/HugeFloat.cpp
	mpir.net/mpir.net/HugeFloat.h
2015-05-23 20:36:01 -04:00
Alex Dyachenko
44fcd74a88 Pre-merge cleanup 2015-05-21 22:00:31 -04:00
Alex Dyachenko
5ef1d11323 Float size checks and ToDouble(out exp). Apparently duplicate work, committing before merging from remote. 2015-05-21 21:39:47 -04:00
Alex Dyachenko
4770c42686 Tests for float arithmetic, expressions, IO methods 2015-05-21 17:18:25 -04:00
Alex Dyachenko
bf044dc564 Float assignment tests 2014-11-23 22:50:12 -05:00
Alex Dyachenko
aaa7b56e70 Float comparison tests. Added construction and assignment of floats from rationals and vice versa. 2014-11-23 22:34:20 -05:00
Alex Dyachenko
a82fecf846 Float conversion tests 2014-11-20 08:18:15 -05:00
Alex Dyachenko
d74453427c Float construction/disposal tests. Implemented float ToString(). 2014-11-19 12:51:21 -05:00
Alex Dyachenko
76907497f0 Float Random methods. 2 TODOs. 2014-06-27 16:28:09 -04:00
Alex Dyachenko
11e33c7140 Float IsInteger 2014-06-27 12:41:46 -04:00
Alex Dyachenko
cd25b5b35c Float size checks. Three broken tests due to MPIR behavior, bug logged 2014-06-27 10:54:19 -04:00
Alex Dyachenko
35a2222d95 Assignment float-to-rational 2014-06-27 10:53:40 -04:00
Alex Dyachenko
94a9578826 Float Rounding 2014-06-27 09:35:37 -04:00
Alex Dyachenko
d161281a47 Float IO - Read implementation. Also updated construction and assignment to make all string conversions consistent. MPIR 2.7.0 Section 7.7 Completed. 2014-06-25 16:22:37 -04:00