Commit Graph

90 Commits

Author SHA1 Message Date
Alex Dyachenko
9870b4d812 Implemented precision-of-destination for Float calculations where possible 2015-12-24 10:57:07 -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
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
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
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
94a9578826 Float Rounding 2014-06-27 09:35:37 -04:00
Alex Dyachenko
0432170047 Float IO tests and Write implementation 2014-06-25 15:10:46 -04:00
Alex Dyachenko
dead3bb7d1 Float expression tests 2014-06-18 11:15:29 -04:00
Alex Dyachenko
f971feae43 Float conversion tests and full implementation of ToString() 2014-06-17 17:53:26 -04:00
Alex Dyachenko
cc66a187e1 Float assignment tests. 2014-06-16 17:10:05 -04:00
Alex Dyachenko
3fda7f427e Moved float arithmetic and comparison tests to the correct location. 2014-06-16 16:03:07 -04:00
Alex Dyachenko
e33d77e1a3 Float Equals (approximately), RelativeDifferenceFrom. MPIR 2.7.0 Section 7.6 Completed. 2014-06-13 15:10:32 -04:00
Alex Dyachenko
abb2403cca Float square root. MPIR 2.7.0 section 7.5 completed. 2014-06-13 13:54:43 -04:00
Alex Dyachenko
60da57e24c Float arithmetic and comparison tests 2014-06-13 11:21:35 -04:00
Alex Dyachenko
f29fb594a5 Initial rough addition of the float type. IO ops don't build, tests to be added. 2014-05-27 13:30:13 -04:00
Alex Dyachenko
eb5c0be34c Added draft tests for rational. Global replace from int only. Need review for completeness, many tests failing. 2014-05-20 11:06:26 -04:00
Alex Dyachenko
55e44923cf Minimum compileable rational implementation 2014-05-05 21:11:28 -04:00
Alex Dyachenko
8b547cc544 IsProbablePrime/IsLikelyPrime methods 2014-04-30 23:19:32 -04:00
Alex Dyachenko
e22246209f MPIR 2.6.0 section 9 - random state init/seed/clear/generate_ui 2014-04-29 23:06:30 -04:00
Alex Dyachenko
c9ba616e58 Minor cleanup refactoring. Exposed a digit value table from GMP so it could be reused. Added a build event to solve the issue locking MPIR.Net assembly after test runs. 2014-04-26 15:40:07 -04:00
Alex Dyachenko
607caf6b7e Raw binary IO. This necessitated some refactoring to the MPIR code. 2014-04-12 00:04:12 -04:00
Alex Dyachenko
2f5bbb1f80 Moved source files outside the Build.VC** dir 2014-04-07 21:15:40 -04:00
Alex Dyachenko
7d6ec7f711 Size checks from MPIR 2.6.0 section 5.15. 2014-04-06 13:28:13 -04:00
Alex Dyachenko
df532c5b28 Completed remaining bitwise operations in MPIR 2.6.0 section 5.11. 2014-04-04 16:08:54 -04:00
Alex Dyachenko
221d50827a ToString truncation. Improved IN_CONTEXT macro. Resolved to dos. 2014-04-03 12:47:40 -04:00
Alex Dyachenko
ab48b8a31e Caught up on XML comments for all public classes and members so far. Some refactoring around ToString() and context usage. 2014-04-02 13:31:46 -04:00
Alex Dyachenko
11b818a563 XML comments on HugeInt construction and disposal members 2014-04-01 17:13:15 -04:00
Alex Dyachenko
9874a21fcf XML comments on expression builder methods 2014-04-01 15:49:01 -04:00
Alex Dyachenko
838e236559 XML comments on equality interface implementations; made expression constructors internal 2014-04-01 14:41:36 -04:00
Alex Dyachenko
2a4ca855e9 XML comments for the arithmetic and logical operations 2014-04-01 13:31:57 -04:00
Alex Dyachenko
ce490c0057 Unrolled macros from operator declarations in preparation for adding XML comments 2014-04-01 12:32:02 -04:00
Alex Dyachenko
6d4ae354d0 Stubbed out more XML comments to flesh out the XML doc file schema, added a comments test. 2014-03-31 20:50:15 -04:00
Alex Dyachenko
735f191a6e Bitwise operations 2014-03-31 12:39:06 -04:00
Alex Dyachenko
d62b5e8914 Updated assignment from string 2014-03-31 12:08:48 -04:00
Alex Dyachenko
64ca2d882c Sign. Completed MPIR 2.6.0 section 5.10. 2014-03-31 11:04:54 -04:00
Alex Dyachenko
21ae3a5035 CompareAbs 2014-03-31 10:56:04 -04:00
Alex Dyachenko
07e5b92984 Added missing tests for CompareTo with primitives 2014-03-31 10:32:32 -04:00
Alex Dyachenko
255e337c8e GetHashCode 2014-03-31 09:27:02 -04:00
Alex Dyachenko
d08e3ac478 Equals and equality operators 2014-03-31 00:05:40 -04:00
Alex Dyachenko
d38395dbb8 Comparisons with double 2014-03-30 21:38:20 -04:00
Alex Dyachenko
8746c7e591 Comparison operators with a signed limb 2014-03-30 21:32:05 -04:00
Alex Dyachenko
939a03e85f Comparison operators with a limb 2014-03-30 21:27:02 -04:00
Alex Dyachenko
32fe79d006 Comparison operator overloads 2014-03-29 21:39:30 -04:00
Alex Dyachenko
a57ee69a3a IComparable implementation 2014-03-29 21:08:42 -04:00
Alex Dyachenko
e55f80c391 Switched to gc build for testing for now. Root is still broken. 2014-03-26 20:48:42 -04:00
Alex Dyachenko
daea13c7ba IsPerfectPower/Square. Completed MPIR 2.6.0 section 5.8. 2014-03-26 17:24:23 -04:00
Alex Dyachenko
82cd99b396 Roots. GMP/MPIR bug found in NthRoot, broken test. 2014-03-26 15:31:54 -04:00
Alex Dyachenko
a881ae86af Constructor from limb ^ limb. Completed MPIR 2.6.0 section 5.7 (except broken tests from unresolved MPIR references) 2014-03-25 14:59:26 -04:00