diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-08-19 22:27:34 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-08-19 22:27:34 (GMT) |
commit | cf8817bf14fed111b4cec85395a921345dfc0fdc (patch) | |
tree | 8ad26cf83b8f57d2b91deeea5b102ef9b44af05c /ChangeLog | |
parent | 2d71d4d051e14c5b84f251b888c67cbc7b0fee99 (diff) | |
download | tcl-cf8817bf14fed111b4cec85395a921345dfc0fdc.zip tcl-cf8817bf14fed111b4cec85395a921345dfc0fdc.tar.gz tcl-cf8817bf14fed111b4cec85395a921345dfc0fdc.tar.bz2 |
Make Miguel's overflow-detection more mnemonic with a macro.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,15 +1,20 @@ +2007-08-19 Donal K. Fellows <dkf@users.sf.net> + + * generic/tclExecute.c (Overflowing, TclIncrObj, TclExecuteByteCode): + Encapsulate Miguel's last change in a more mnemonic macro. + 2007-08-19 Miguel Sofer <msofer@users.sf.net> * generic/tclExecute.c: changed the check for overflow in sums, - reducing objsize, number of branches and cache misses (according - to cachegrind). Non-overflow for s=a+b: - previous + reducing objsize, number of branches and cache misses (according to + cachegrind). Non-overflow for s=a+b: + previous ((a >= 0 || b >= 0 || s < 0) && (s >= 0 || b < 0 || a < 0)) now (((a^s) >= 0) || ((a^b) < 0)) This expresses: "a and s have the same sign or else a and b have different sign". - + 2007-08-19 Donal K. Fellows <dkf@users.sf.net> * doc/interp.n (RESOURCE LIMITS): Added text to better explain why |