Commit Graph

57 Commits

Author SHA1 Message Date
Jacek Sieka 8eb3517e20
travis: use cached nim instead of docker 2018-09-02 19:44:20 -06:00
coffeepots 2609cbbeef Add test for string <-> Uint/Int 2018-04-17 15:56:57 +01:00
coffeepots 0d547441d1 Fix string -> UInt/Int 2018-04-17 15:56:26 +01:00
coffeepots 3760247c5d Merge branch 'master' of https://github.com/status-im/nim-ttmath 2018-04-16 17:26:14 +01:00
coffeepots 64350c4389 Fix hang with GCC64 when converting number to string 2018-04-16 17:21:00 +01:00
Mamy Ratsimbazafy c2f83aa221
make tests green again 2018-04-11 15:58:18 +02:00
Mamy Ratsimbazafy 11151d053d
Fix docker for Travis
(nimble install is usually needed)
2018-04-11 15:49:47 +02:00
Yuriy Glukhov 1d1942306a Added MacOS build to travis. (#18) 2018-04-11 14:57:47 +02:00
Coffepots ef59a023a3 Added += and -= templates for literals 2018-04-06 20:17:53 +01:00
Coffepots b83d9e1c37 Changed converters to use +/- procs as converters were too liberal 2018-04-06 17:45:17 +01:00
Mamy Ratsimbazafy 246aaf7674
Syntactic sugar: implicit conversion of int literals + inc/dec proc (#17)
* inc and dec proc

* make inc/dec parametric

* Add implicit converter for int literals to U/Int256
2018-04-06 17:31:07 +02:00
Yuriy Glukhov 3db268ba98 Removed destructors (#15) 2018-04-04 18:03:49 +02:00
mratsim 658e7d369f Nimbus requires pow(Uint, uint64) but uint != uint64 2018-04-04 15:38:07 +02:00
Coffepots a4b1c95b72 Comment to Pow issue 2018-04-03 18:06:54 +01:00
Coffepots 38b1ca4c9b Disable asm for windows to fix Pow stack bug 2018-04-03 18:05:20 +01:00
Yuriy Glukhov 1090c5803d
Merge pull request #13 from status-im/Windows-32-64-bit-continuous-integration
Windows 32 64 bit continuous integration
2018-04-03 18:43:55 +03:00
Yuriy Glukhov b48bfd5d40
Merge pull request #12 from status-im/Tests-put-binaries-in-build-folder
Tests put files in build and the proper nimcache folders
2018-04-03 18:43:17 +03:00
mratsim aef2a474b3 Add Status autopatch to Appveyor 2018-04-03 17:14:23 +02:00
mratsim 78560e730a Add badges 2018-04-03 16:53:29 +02:00
mratsim 4737d2c8e5 let's try manually 2018-04-03 16:35:41 +02:00
mratsim 7d08bb2377 Try to change the dir from the compiler dir 2018-04-03 16:28:49 +02:00
Yuriy Glukhov 5adb562c58
Merge pull request #11 from status-im/Fix-uint-pow
Fix uint Pow
2018-04-03 17:18:52 +03:00
mratsim 879ca3a4cd Add Appveyor for Windows CI 2018-04-03 15:56:21 +02:00
mratsim ac4662fd57 Tests put files in build and the proper nimcache folders 2018-04-03 15:19:39 +02:00
mratsim 974a6eba54 Fix Pow - input should be uint for proper int literal conversion 2018-04-03 15:15:03 +02:00
mratsim 389da7588f Add broken pow test 2018-04-03 15:12:27 +02:00
Yuriy Glukhov 1e673a2d21
Merge pull request #9 from status-im/fix-negate-int
Fix Int `-` (negate)
2018-04-03 12:02:11 +03:00
mratsim 3c91050650 Use the negate operator provided by ttmath 2018-04-03 10:50:26 +02:00
mratsim d46815e1e5 Add failing negate test 2018-04-03 10:38:37 +02:00
coffeepots 8f6ff2e57b Added helper proc for max ints 2018-03-27 14:20:32 +01:00
Yuriy Glukhov 7e30db5e69 Serialization and stringification (#8) 2018-03-22 10:14:12 +01:00
Yuriy Glukhov 6dd9e2c306
Added travis badge 2018-03-20 22:49:56 +02:00
Yuriy Glukhov beaf9fb7e3 Use NumBits as generic param 2018-03-20 22:41:58 +02:00
Yuriy Glukhov 462f2ae5ce Fixed size problem on different archs 2018-03-20 22:41:58 +02:00
Yuriy Glukhov d58924f22e Some additions 2018-03-16 17:20:49 +02:00
Alexander Ivanov a26bc1e418 Revert "Fix ToString usage"
This reverts commit 4990376607.
2018-03-14 17:34:20 +02:00
Alexander Ivanov 4990376607 Fix ToString usage 2018-03-14 17:32:14 +02:00
Yuriy Glukhov a4c9a13283 Fixup 2018-03-12 09:42:05 +02:00
Yuriy Glukhov 6f2124daa5 Generalize even more 2018-03-12 09:42:05 +02:00
Yuriy Glukhov 4e46500292 Generalize UInt 2018-03-12 09:42:05 +02:00
Yuriy Glukhov 6c8141dbf5 Generalize Int type 2018-03-12 09:42:05 +02:00
Alexander Ivanov ec59e3c035 Add pow UInt256 2018-02-28 16:17:00 +02:00
Zahary Karadjov 2edcf7c621 Specify the copyright holders properly 2018-02-27 19:56:59 +02:00
Alexander Ivanov e3eaaec93a Expose bytes for uint 2018-02-20 15:04:35 +02:00
Alexander Ivanov 001f78f27c Increment version 2018-02-20 14:21:50 +02:00
Alexander Ivanov 9c0fe94ec5 Expose bytes 2018-02-20 14:21:29 +02:00
Alexander Ivanov 904a96c004 Increment version 2018-02-19 11:25:18 +02:00
Alexander Ivanov 021c3935b0
Merge pull request #2 from coffeepots/win-compatibility
Win compatibility
2018-02-19 11:21:33 +02:00
coffeepots 3bc35cc17e Forced FindLeadingBitInWord asm to use 64 bit registers 2018-02-16 14:23:13 +00:00
coffeepots c6e6d47895 Header path compatibility for windows and added ttmath scope to uint 2018-02-16 14:23:00 +00:00