Commit Graph

37 Commits

Author SHA1 Message Date
JoelKatz
606dff758c Support compiling with C++11 rules. Compile C++11 by default.
This gives us some significant performance boosts when containers and binds.
2013-03-16 02:38:05 -07:00
JoelKatz
79e8734c54 Remove broken code. (Was commented out anyway.) 2013-03-11 02:14:25 -07:00
JoelKatz
33bb64e4d7 Missing from previous commit. 2013-03-10 21:24:07 -07:00
Arthur Britto
cffb069f1b Cosmetic changes. 2013-03-05 17:27:57 -08:00
Arthur Britto
628a1bdd5f Merge branch 'master' into autoclient
Conflicts:
	src/cpp/ripple/AutoSocket.h
2013-02-01 19:01:10 -08:00
JoelKatz
402f7539d4 Rounding, w/ unit test. 2013-02-01 16:47:08 -08:00
JoelKatz
2ff3583b7d Cleanup. 2013-01-30 18:55:42 -08:00
Arthur Britto
2f0721f80f Work toward http/https client unification. 2013-01-30 15:17:01 -08:00
JoelKatz
163c4869d6 Remove dead code. Properly handle "too good" and "too bad" offers. Unit test. 2013-01-30 12:56:37 -08:00
JoelKatz
d663037ddc Report a rate of zero for worthless orders. 2013-01-30 11:29:59 -08:00
JoelKatz
7213fb9f21 Fix underflow and overflow handling in the STAmount class. Add unit test. 2013-01-30 10:12:43 -08:00
Stefan Thomas
84dd5c2728 Add check to prevent negative zero.
We want a canonical encoding for zero which is 0x4000000000000000 i.e. "positive
zero". So we want to disallow the alternative encoding 0x0000000000000000 i.e.
"negative zero".
2013-01-30 17:59:54 +01:00
JoelKatz
f413aa3ef9 Remove "e0". 2013-01-29 16:19:07 -08:00
Arthur Britto
823e04b148 Fixes for rippling funds. 2013-01-28 21:13:19 -08:00
Arthur Britto
02b9a0b623 Fix applyOffer() calculations and doc. 2013-01-28 12:40:01 -08:00
Arthur Britto
1cbe6be1bd Be more cautious with rounding in applyOffer. 2013-01-27 11:51:17 -08:00
Arthur Britto
ea0404b552 Work on applying offers. 2013-01-26 20:29:44 -08:00
Arthur Britto
d5477dc832 Fix applyOffer() to use rate and other stuff. 2013-01-25 14:23:42 -08:00
Arthur Britto
cd7b928ad5 Fix error in OfferCreating taking. 2013-01-23 16:08:03 -08:00
JoelKatz
271bf901ec Support for compiling on 32-bit platforms. The main issue was BN_ULONG size and not using 'long' where
'long long' or 'uint64' should be used.
2013-01-15 23:47:42 -08:00
JoelKatz
2203313945 Logging cleanups. 2012-12-18 14:39:02 -08:00
JoelKatz
fa4ff04d06 Broaden the integer multiplication testing. 2012-12-14 16:18:32 -08:00
JoelKatz
48f5f25076 This gets as many of the "nice to get right" cases exactly right as possible
without failing any of the critical cases.
2012-12-13 00:06:37 -08:00
JoelKatz
93e4e4780a Try native*non-native too. 2012-12-12 21:53:13 -08:00
JoelKatz
d7fcb5c7ba Fix a native*native bug. Add a test to make sure integer multiplications give exact results. 2012-12-12 21:50:07 -08:00
JoelKatz
f27d435bb3 Fix rounding for the last time. It's [(10X+5)(10Y+5)]/100 -- this passes
every test I can imagine. (Tests added.)
2012-12-11 22:56:25 -08:00
JoelKatz
8faa25e9ff Restore [(10X+3)(10Y+3)]/100 rounding. Arthur, please double check. 2012-12-11 15:12:21 -08:00
JoelKatz
42e3453073 Our new rounding actually does nothing. So let's not round. 2012-12-11 00:17:11 -08:00
JoelKatz
d705bde28a Cleanup. 2012-12-11 00:09:33 -08:00
JoelKatz
ddcf87cdb6 Tiny optimization. 2012-12-10 22:05:23 -08:00
JoelKatz
8f0089fc01 Bugfix. 2012-12-10 17:39:48 -08:00
JoelKatz
dd00d886a0 Use less funky rounding. Tiny optimization. 2012-12-10 17:36:48 -08:00
JoelKatz
62611771ac Remove redunant check. 2012-12-08 18:59:56 -08:00
Arthur Britto
4e713c58ad Work toward ripple_path_find. 2012-11-22 11:51:40 -08:00
Arthur Britto
8e35265922 Add issuerFromString() and bSetJson() to STAmount. 2012-11-21 16:22:51 -08:00
Arthur Britto
42b37c8b1f Fixes for path expansion. 2012-11-12 14:40:42 -08:00
Stefan Thomas
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00