Commit Graph

45 Commits (2b552e99f748b3ee9df32a02ebc53cdc752e39ff)

Author SHA1 Message Date
John Benediktsson 61cbc5ce1c vm: adding bignum_gcd note. 2013-03-27 14:53:56 -07:00
Doug Coleman 22144387e7 vm: Add more Allocates memory comments. 2013-03-25 17:52:30 -07:00
Doug Coleman 22ccd593b0 vm: More allocates comments. 2013-03-25 14:05:05 -07:00
Doug Coleman 0182c9970a vm: Standardize /* Allocates memory */ comments so you can grep -A1
and see if a function allocates for easier debugging of the gc.
A couple of the functions were not yet annotated.
2013-03-25 12:00:18 -07:00
John Benediktsson d7c0310e13 vm: make bignum-bitnot faster. 2012-08-31 15:22:07 -07:00
John Benediktsson 229bb24f33 vm: use tabs instead of spaces in bignum_gcd. 2012-08-22 21:31:27 -07:00
Doug Coleman dd8b4a1d77 vm: Add messages about things that can allocate. Fix a gc bug in the primitive for quotation-code. 2012-08-15 21:30:55 -07:00
Doug Coleman 079bcaa570 bignum.cpp: Fix calls to reallot_array() -- bignums can get new addresses if they are not in the nursery or are somehow larger. Fix a couple more correctness issues. 2012-08-15 01:51:58 -07:00
John Benediktsson 5d8ffbc23b bignum: incorporate some fixes from @slavapestov. 2012-08-10 14:28:44 -07:00
John Benediktsson ac8dfc7128 vm: make sure we zero out the end of the bignums. 2012-08-04 18:02:27 -07:00
John Benediktsson e941e3c6d3 vm: a bit faster not to trim on each iteration... 2012-08-04 09:13:05 -07:00
John Benediktsson 2d1ad0cd03 vm: additional fix in bignum_gcd. 2012-08-03 21:50:48 -07:00
John Benediktsson 937cf547d9 vm: some fixes to fast bignum gcd. 2012-08-03 12:13:46 -07:00
John Benediktsson 925c0dd744 vm: fix updating size inside bignum_gcd loop. 2012-08-02 17:36:07 -07:00
Doug Coleman 745ac786a8 bignum: Fix bignum_gcd algorithm from overwriting the wrong bignum memory. Add GC_BIGNUM to prevent gc crashes. Fixes #599. 2012-08-02 17:16:03 -07:00
John Benediktsson 5e8ca2b046 vm: adding more GC_BIGNUM to WIN64 path. See #599. 2012-08-02 17:04:22 -07:00
John Benediktsson 965d8eca84 vm: use euclid gcd on win64 until we find a better way to do the 128-bit math. 2012-04-06 11:42:59 -07:00
John Benediktsson 6e0e4d09dc vm: use twodigit type for all variables (fixes 32-bit warning). 2012-04-06 09:36:25 -07:00
John Benediktsson 629677b772 vm: adding bignum_gcd primitive. 2012-04-05 09:17:35 -07:00
Joe Groff 2db8dd3f80 vm: move bignum.cpp includes to master.hpp
That way they get PCHed
2011-11-08 08:42:47 -08:00
John Benediktsson da21f5ca61 io.binary: make le> and be> faster (20% and 75%, respectively).
Removed primitive byte-array>bignum and digit_stream_to_bignum from vm/.
2011-10-11 21:13:30 -07:00
Slava Pestov b0b5f3ac97 Remove bignum>float VM primitive, and use bignum/f to implement >float on bignums instead, for a slight accuracy gain. Also, bignum/f now has a more efficient post-scaling algorithm to break the circular dependency on bignum>float 2010-11-24 22:41:15 -08:00
Joe Groff 6c881acbbd quiet some data conversions warnings raised by msvc 2010-05-05 22:22:13 -07:00
Slava Pestov a942e2c34d vm: eliminating register variables work in progress. Works on x86-32 with non-optimizing compiler 2009-12-19 10:59:56 +13:00
Slava Pestov f442d1949b Change data heap alignment to 16 bytes 2009-10-20 12:45:00 -05:00
Phil Dawes 63266524d7 Moved PRIMITIVE and PRIMITIVE_FORWARDs to primitives.[ch]pp 2009-09-27 19:42:18 +01:00
Phil Dawes 1c5329cc2e renamed factorvm to factor_vm 2009-09-24 08:16:52 +01:00
Phil Dawes 0022f5c45f bignum indentation and macro cleanup 2009-09-24 08:02:14 +01:00
Phil Dawes 1c2292d36a bignum indentation cleanup 2009-09-24 08:02:14 +01:00
Phil Dawes 2cfb1b6f02 removed a bunch of superflous blank lines 2009-09-24 08:02:14 +01:00
Phil Dawes c1212b1326 Split data out into separate vm-data struct 2009-09-16 08:22:16 +01:00
Phil Dawes caef18de95 removed global functions from bignum.cpp 2009-09-16 08:16:27 +01:00
Phil Dawes e80c9f90d6 updated function ptr calls (iterators etc..) to take a vm parameter 2009-09-16 08:16:25 +01:00
Phil Dawes 6c566717ba moved global state from math into vm 2009-09-16 08:16:24 +01:00
Phil Dawes f8d56f69c1 added vm member to gc_bignum 2009-09-16 08:16:22 +01:00
Phil Dawes b73b540290 moved bignum functions to vm 2009-09-16 08:16:18 +01:00
Phil Dawes 2dd9e92778 Dev checkpoint 2009-09-16 08:16:18 +01:00
Phil Dawes ef53b8cf6a Dev checkpoint 2009-09-16 08:16:18 +01:00
Phil Dawes ad7765b71a Dev checkpoint 2009-09-16 08:16:18 +01:00
Philipp Brüschweiler 18240b0219 misc small documentation fixes, some fixes for factor.vim, changed permissions of vm/* to 644 2009-08-10 21:33:07 +02:00
Slava Pestov 7c0a59f7a9 The great type renaming 2009-05-04 04:50:24 -05:00
Slava Pestov 7f48eb2b2c Use C++ namespaces 2009-05-04 01:46:13 -05:00
Slava Pestov 1857f90eb6 VM: use better abstractions for tagged pointers, eliminate get()/set() stuff, clean up array, string, and byte-array element access 2009-05-04 01:00:30 -05:00
Slava Pestov 7820d88271 Various VM cleanups, new approach for bignum GC root registration 2009-05-03 05:48:03 -05:00
Slava Pestov 938d1a4270 Move vmpp to vm 2009-05-02 20:37:18 -05:00