[kaffe] CVS kaffe (robilad): made further fp conversion functions static

Kaffe CVS cvs-commits at kaffe.org
Thu Feb 14 16:13:53 PST 2008


PatchSet 7749 
Date: 2008/02/15 00:12:26
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
made further fp conversion functions static

08-02-15  Dalibor Topic  <robilad at kaffe.org>

* kaffe/kaffevm/fp.c (floatToInt, doubleToLong): Made static.

* kaffe/kaffevm/fp.h (doubleToLong, floatToInt): Removed.

Members: 
	ChangeLog:1.5249->1.5250 
	kaffe/kaffevm/fp.c:1.12->1.13 
	kaffe/kaffevm/fp.h:1.8->1.9 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.5249 kaffe/ChangeLog:1.5250
--- kaffe/ChangeLog:1.5249	Fri Feb 15 00:06:30 2008
+++ kaffe/ChangeLog	Fri Feb 15 00:12:26 2008
@@ -1,5 +1,11 @@
 2008-02-15  Dalibor Topic  <robilad at kaffe.org>
 
+	* kaffe/kaffevm/fp.c (floatToInt, doubleToLong): Made static.
+
+	* kaffe/kaffevm/fp.h (doubleToLong, floatToInt): Removed.
+
+2008-02-15  Dalibor Topic  <robilad at kaffe.org>
+
 	* kaffe/kaffevm/fp.c (intToFloat):  Simplified collapsing of NaNs.
 	Made function static.
 
Index: kaffe/kaffe/kaffevm/fp.c
diff -u kaffe/kaffe/kaffevm/fp.c:1.12 kaffe/kaffe/kaffevm/fp.c:1.13
--- kaffe/kaffe/kaffevm/fp.c:1.12	Fri Feb 15 00:06:31 2008
+++ kaffe/kaffe/kaffevm/fp.c	Fri Feb 15 00:12:28 2008
@@ -23,10 +23,8 @@
 
 /*
  * Convert double to jlong.
- *
- * If you change this function, also change strtod("-0.0") check in
- * configure.in.
  */
+static
 jlong
 doubleToLong(jdouble val)
 {
@@ -76,6 +74,7 @@
 /*
  * Convert float to int.
  */
+static
 jint
 floatToInt(jfloat val)
 {
Index: kaffe/kaffe/kaffevm/fp.h
diff -u kaffe/kaffe/kaffevm/fp.h:1.8 kaffe/kaffe/kaffevm/fp.h:1.9
--- kaffe/kaffe/kaffevm/fp.h:1.8	Fri Feb 15 00:06:32 2008
+++ kaffe/kaffe/kaffevm/fp.h	Fri Feb 15 00:12:28 2008
@@ -37,8 +37,5 @@
 extern jfloat	floatDivide(jfloat v1, jfloat v2);
 extern jdouble	doubleDivide(jdouble v1, jdouble v2);
 
-extern jlong	doubleToLong(jdouble val);
-extern jint	floatToInt(jfloat val);
-
 #endif /* __fp_h */
 




More information about the kaffe mailing list