[kaffe] CVS kaffe (guilhem): fdlibm fixlets + Added availableProcessors to Runtime.

Kaffe CVS cvs-commits at kaffe.org
Thu Jul 14 07:20:25 PDT 2005


PatchSet 6731 
Date: 2005/07/14 14:15:09
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
fdlibm fixlets + Added availableProcessors to Runtime.

        * libraries/clib/fdlibm/ieeefp.h: Readded arm specific ifdefs.

        * libraries/javalib/java/lang/Runtime.java
        (availableProcessors): Dummy function for compatibility.

Members: 
	ChangeLog:1.4255->1.4256 
	libraries/clib/fdlibm/ieeefp.h:1.3->1.4 
	libraries/javalib/java/lang/Runtime.java:1.33->1.34 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4255 kaffe/ChangeLog:1.4256
--- kaffe/ChangeLog:1.4255	Thu Jul 14 14:05:54 2005
+++ kaffe/ChangeLog	Thu Jul 14 14:15:09 2005
@@ -1,3 +1,10 @@
+2005-07-14  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* libraries/clib/fdlibm/ieeefp.h: Readded arm specific ifdefs.
+
+	* libraries/javalib/java/lang/Runtime.java
+	(availableProcessors): Dummy function for compatibility.
+	
 2005-07-14  Daniel Bonniot  <bonniot at users.sf.net>
 
 	* kaffe/kaffevm/gcFuncs.c
Index: kaffe/libraries/clib/fdlibm/ieeefp.h
diff -u kaffe/libraries/clib/fdlibm/ieeefp.h:1.3 kaffe/libraries/clib/fdlibm/ieeefp.h:1.4
--- kaffe/libraries/clib/fdlibm/ieeefp.h:1.3	Mon Jun 27 07:27:22 2005
+++ kaffe/libraries/clib/fdlibm/ieeefp.h	Thu Jul 14 14:15:13 2005
@@ -6,10 +6,32 @@
 
 #include "config.h"
 
-#if defined(WORDS_BIGENDIAN)
-# define __IEEE_BIG_ENDIAN
+#if defined(__arm__) || defined(__thumb__)
+/* ARM traditionally used big-endian words; and within those words the
+   byte ordering was big or little endian depending upon the target.
+   Modern floating-point formats are naturally ordered; in this case
+   __VFP_FP__ will be defined, even if soft-float.  */
+#ifdef __VFP_FP__
+#  ifdef __ARMEL__
+#    define __IEEE_LITTLE_ENDIAN
+#  else
+#    define __IEEE_BIG_ENDIAN
+#  endif
 #else
-# define __IEEE_LITTLE_ENDIAN
+#  define __IEEE_BIG_ENDIAN
+#  ifdef __ARMEL__
+#    define __IEEE_BYTES_LITTLE_ENDIAN
+#  endif
+#endif
+
+#endif
+
+#if !defined(__IEEE_BIG_ENDIAN) && !defined(__IEEE_LITTLE_ENDIAN)
+#  if defined(WORDS_BIGENDIAN)
+#   define __IEEE_BIG_ENDIAN
+#  else
+#   define __IEEE_LITTLE_ENDIAN
+#  endif
 #endif
 
 #endif /* not __IEEE_LITTLE_ENDIAN */
Index: kaffe/libraries/javalib/java/lang/Runtime.java
diff -u kaffe/libraries/javalib/java/lang/Runtime.java:1.33 kaffe/libraries/javalib/java/lang/Runtime.java:1.34
--- kaffe/libraries/javalib/java/lang/Runtime.java:1.33	Mon May 30 21:16:08 2005
+++ kaffe/libraries/javalib/java/lang/Runtime.java	Thu Jul 14 14:15:13 2005
@@ -313,6 +313,15 @@
 	Runtime.getRuntime().exitJavaCleanup();
 }
 
+public int availableProcessors()
+{
+	/* We are using here a dummy implementation. The issue will be
+	 * fixed once we have replaced Runtime.
+	 */
+	return 1;
+}
+
+
 native public void runFinalization();
 
 native public static void runFinalizersOnExit(boolean value);




More information about the kaffe mailing list