You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by dt...@apache.org on 2005/12/08 16:09:11 UTC

svn commit: r355111 - /incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/include/jc_machdep.h.in

Author: dtanzer
Date: Thu Dec  8 07:08:49 2005
New Revision: 355111

URL: http://svn.apache.org/viewcvs?rev=355111&view=rev
Log:
Added __ppc__ to the list of supported architectures where appropriate. I'm
not sure if I really did everything right here. For example, the PPC supports
Big Endian as well as Little Endian, I added it to Big Endian.


Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/include/jc_machdep.h.in

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/include/jc_machdep.h.in
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/include/jc_machdep.h.in?rev=355111&r1=355110&r2=355111&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/include/jc_machdep.h.in (original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/jchevm/jchevm/include/jc_machdep.h.in Thu Dec  8 07:08:49 2005
@@ -15,7 +15,7 @@
  *  See the License for the specific language governing permissions and
  *  limitations under the License.
  *
- * $Id: jc_machdep.h.in,v 1.3 2005/05/10 01:19:23 archiecobbs Exp $
+ * $Id$
  */
 
 #ifndef _JC_MACHDEP_H_
@@ -41,7 +41,7 @@
  *	_jc_uint64	Unsigned 64 bit type
  */
 
-#if defined(__i386__) || defined(__sparc__)
+#if defined(__i386__) || defined(__sparc__) || defined(__ppc__)
 
 typedef unsigned short		_jc_uint16;
 typedef unsigned int		_jc_uint32;
@@ -64,7 +64,7 @@
  * 3. #define _JC_JLONG() as how to create a 'jlong' constant in C.
  */
 
-#if defined(__ia64__) || defined(__alpha__) || defined(__i386__) || defined(__sparc__)
+#if defined(__ia64__) || defined(__alpha__) || defined(__i386__) || defined(__sparc__) || defined(__ppc__)
 
 typedef	unsigned int		_jc_word;
 #define _JC_SIGNED_RIGHT_SHIFT	1
@@ -98,7 +98,7 @@
 	u.f;								\
     })
 
-#elif defined(__alpha__) ||defined(__sparc__)
+#elif defined(__alpha__) ||defined(__sparc__) || defined(__ppc__)
 
 /* Big endian machines */
 #define _JC_DCONST(b0,b1,b2,b3,b4,b5,b6,b7)				\
@@ -127,7 +127,7 @@
  * otherwize define it to 0.
  */
 
-#if defined(__i386__)
+#if defined(__i386__) || defined(__ppc__)
 
 #define _JC_DOWNWARD_STACK	1