Vítor Santos Costa
93270c125a
fix several ISO compat bugs (Paulo Moura).
2014-10-22 16:50:12 +01:00
Vítor Santos Costa
bf0844a2a0
make sure to reset state after error.
2014-10-20 00:33:36 +01:00
Vítor Santos Costa
168f0c6c0c
improve error handling
2014-10-16 23:55:34 +01:00
Vitor Santos Costa
1bb12cbc35
second try to fix error handling in arithmetic expressions. THis time:
...
- exit at predicate end;
- just return first on multiple erors.
- YapArithError takes care of inner errors, Yp_EvalError fixes externals.
- a few ISO stuff to make Paulo's unit tests go happier.
2014-10-16 10:49:11 +01:00
Vítor Santos Costa
8576e67d84
generate exceptions on arithmetic errors
2014-10-15 11:06:07 +01:00
Vítor Santos Costa
137f69ed22
doc support
2014-04-21 11:14:18 +01:00
Vitor Santos Costa
d163cadda1
pass regs when constructing long ints and floats.
...
fix small gcc complaints.
2013-03-26 15:01:52 -05:00
Vitor Santos Costa
60969b9601
rem and mod used code from div :( (Robrto Bagnara)
2013-02-12 16:45:03 -06:00
Vítor Santos Costa
9348513d12
fix unused variable.
2011-12-30 15:51:01 +00:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
b6aca9463d
Merge branch 'master' of ssh://yap.git.sourceforge.net/gitroot/yap/yap-6.3
2011-08-18 22:35:13 +01:00
Vitor Santos Costa
5f3df98069
make sure wide property is always the first property.
2011-08-17 11:16:21 -07:00
U-WIN-U2045GN0RNQ\Vítor Santos Costa
840e287cda
mode changes
2011-07-25 17:09:28 +01:00
Vítor Santos Costa
b23f2c92af
fix bad error message for div 0 (UN #217 ).
2011-04-22 14:48:33 +01:00
Vítor Santos Costa
90d93fdbdd
cache abstra machine register in threaded mode.
2011-03-07 16:02:55 +00:00
Vitor Santos Costa
3cfe5c74d5
fix div to round correctly (Ulrich's #181 ).
2010-10-08 10:58:08 +01:00
Vitor Santos Costa
c50ed643f9
allow atan(X,Y) again.
2010-09-27 22:01:38 +01:00
Vitor Santos Costa
ea0fbabedd
xor can be used for exclusive disj
2010-09-21 22:26:24 +01:00
Vitor Santos Costa
e4a15cba33
div/2 operators (from WG17 and #176 )
2010-08-30 21:50:33 -05:00
Vitor Santos Costa
7bf8187bba
remove atan2 (WG17 UD #175 )
2010-08-04 22:09:08 +01:00
Vítor Santos Costa
ab84319604
compile without gmp
2010-06-01 01:07:36 +01:00
Vítor Santos Costa
09fef1a033
rational number support. First pass.
2010-05-27 12:24:15 +01:00
Vítor Santos Costa
c52dda489b
be careful around 1L and friends
2010-05-11 00:18:12 +01:00
Vitor Santos Costa
ba091eb2f9
support db_ref_e:
2010-03-06 22:43:21 +00:00
Vitor Santos Costa
8fc50d9935
make YAP throw a runtime-error on unknown arithmetic ops.
2010-03-06 00:16:49 +00:00
Vitor Santos Costa
f137773011
fix error handling on entry arguments.
2010-02-22 22:48:13 +00:00
Vitor Santos Costa
33f3dcc3d1
avoid excessive error testing
2010-01-03 15:43:07 -02:00
Vitor Santos Costa
0179998d60
change Heap.h to YapHeap.h
...
rename $live to prolog/0 (for SWI compatibility).
2009-10-23 14:22:17 +01:00
Vítor Manuel de Morais Santos Costa
d18cb214fa
implement epsilon (from ISO)
2009-10-20 09:21:59 +01:00
Vitor Santos Costa
22ac3ee80b
Use >< for xor (Paulo Mour, Iso meeting)
2009-07-23 14:31:04 -05:00
Costa Vitor
c8946e1e4e
support inline arithemtic builtins as non-inlined.
2009-07-22 17:01:30 -05:00
Costa Vitor
9569d04a9f
remove some warnings in the absence of GMP
2009-06-15 10:11:05 -05:00
Vitor Santos Costa
7e108201b0
fix memory leak in mod.
2009-06-05 10:55:28 -05:00
Vitor Santos Costa
ecb03a61c0
fix memory leak in min/2 and max/2.
2009-06-05 10:38:07 -05:00
Vitor Santos Costa
a1b621507a
max of bignums would always return the first bignum #118
2009-06-05 09:49:00 -05:00
Vitor Santos Costa
9852f7781d
- simplify error handling in arithmetic and handle infinite terms ( #46 )
2009-05-22 11:21:39 -05:00
Vitor Santos Costa
5b527e7eeb
just make things prettier.
2009-05-09 23:39:57 -04:00
Vitor Santos Costa
5b537ef7e2
fix error handling.
2009-05-09 23:30:08 -04:00
Vitor Santos Costa
e4fdf5a1ff
fix (??) X^N, N< 0. When does this make sense?
2009-05-07 23:42:16 -04:00
Vitor Santos Costa
2016e118b3
Ulrich Neumerkel's patch so that variables are declared in front of a block.
2009-05-02 10:54:09 -05:00
Vitor Santos Costa
c5ba7e3854
fix non GMP code (obs from Tony Wilson).
2009-04-26 10:46:00 -05:00
Vitor Santos Costa
2503805aff
support 2^2 is 4 and not 4.0: complicated if we have to deal with bignums.
2009-04-24 19:03:00 -05:00
Vitor Santos Costa
2bc5d8425a
fix arithmetic dependence on Prolog table.
2009-02-25 00:12:36 +00:00
Vitor Santos Costa
8a3978e3e1
rename BinaryTestPredFlag to BinaryPredFlag
...
get rid of small annoying arithmetic bugs
2009-02-09 21:56:40 +00:00
Vítor Santos Costa
a8ac9bfb43
generate known atoms and functors automatically
2008-12-23 01:53:52 +00:00
Vítor Santos Costa
e737599dc4
Change to simpler Eval mechanism
...
- avoid duplicate code
- implement different optimised code.
2008-12-04 23:33:32 +00:00
vsc
c23cce1cc1
fix restore and small VISTA thingies
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2177 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2008-04-01 08:42:46 +00:00
rslopes
1c6cb0e8cf
small fixes
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1595 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-04-12 15:51:23 +00:00
vsc
745fed2679
avoid sideffects from MkBigInt
...
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1524 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-18 15:34:54 +00:00
vsc
772a6ae805
fixes to reclaim space on error, allow compilation whitout GMP, and
...
improve docs.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1493 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 23:19:10 +00:00
vsc
e10213929a
support new interface between YAP and GMP, so that we don't rely on our own
...
allocation routines.
Several big fixes.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1490 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
2006-01-02 02:16:19 +00:00