[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile/guile-core NEWS libguile/ChangeLog libgui...
From: |
Dirk Herrmann |
Subject: |
guile/guile-core NEWS libguile/ChangeLog libgui... |
Date: |
Wed, 13 Dec 2000 16:08:56 -0800 |
CVSROOT: /cvs
Module name: guile
Changes by: Dirk Herrmann <address@hidden> 00/12/13 16:08:56
Modified files:
guile-core : NEWS
guile-core/libguile: ChangeLog numbers.c
Log message:
* Re-introduced most-positive-fixnum and most-negative-fixnum.
CVSWeb URLs:
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/NEWS.diff?r1=1.229&r2=1.230
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/ChangeLog.diff?r1=1.1207&r2=1.1208
http://subversions.gnu.org/cgi-bin/cvsweb/guile/guile-core/libguile/numbers.c.diff?r1=1.109&r2=1.110
Patches:
Index: guile/guile-core/NEWS
diff -u guile/guile-core/NEWS:1.229 guile/guile-core/NEWS:1.230
--- guile/guile-core/NEWS:1.229 Wed Dec 13 03:38:29 2000
+++ guile/guile-core/NEWS Wed Dec 13 16:08:55 2000
@@ -211,7 +211,7 @@
There is no such concept as a weak binding any more.
-** Removed constants: most-positive-fixnum, most-negative-fixnum, bignum-radix
+** Removed constants: bignum-radix
* Changes to the gh_ interface
Index: guile/guile-core/libguile/ChangeLog
diff -u guile/guile-core/libguile/ChangeLog:1.1207
guile/guile-core/libguile/ChangeLog:1.1208
--- guile/guile-core/libguile/ChangeLog:1.1207 Wed Dec 13 03:38:29 2000
+++ guile/guile-core/libguile/ChangeLog Wed Dec 13 16:08:55 2000
@@ -1,3 +1,9 @@
+2000-12-13 Dirk Herrmann <address@hidden>
+
+ * numbers.c (scm_init_numbers): Re-introduced bindings for
+ most-positive-fixnum and most-negative-fixnum as requested by
+ Mikael Djurfeldt.
+
2000-12-12 Dirk Herrmann <address@hidden>
The variable scm_symbols is made static within symbols.c and
Index: guile/guile-core/libguile/numbers.c
diff -u guile/guile-core/libguile/numbers.c:1.109
guile/guile-core/libguile/numbers.c:1.110
--- guile/guile-core/libguile/numbers.c:1.109 Thu Nov 23 05:54:49 2000
+++ guile/guile-core/libguile/numbers.c Wed Dec 13 16:08:56 2000
@@ -4353,6 +4353,13 @@
void
scm_init_numbers ()
{
+ /* It may be possible to tune the performance of some algorithms by using
+ * the following constants to avoid the creation of bignums. Please, before
+ * using these values, remember the two rules of program optimization:
+ * 1st Rule: Don't do it. 2nd Rule (experts only): Don't do it yet. */
+ scm_sysintern ("most-positive-fixnum", SCM_MAKINUM
(SCM_MOST_POSITIVE_FIXNUM));
+ scm_sysintern ("most-negative-fixnum", SCM_MAKINUM
(SCM_MOST_NEGATIVE_FIXNUM));
+
scm_add_feature ("complex");
scm_add_feature ("inexact");
scm_flo0 = scm_make_real (0.0);