4 #include "platform_config.h"
9 * The following types must be defined in platform_config.h:
19 typedef JBYTE JBOOLEAN;
21 typedef FOURBYTES REFERENCE;
22 typedef FOURBYTES STACKWORD;
38 #error LITTLE_ENDIAN not defined in platform_config.h
41 #define jfloat2word(FLOAT_) (((AuxConvUnion1) (FLOAT_)).sword)
42 #define word2jfloat(WORD_) (((AuxConvUnion1) (WORD_)).fnum)
43 #define byte2jint(BYTE_) ((JINT) (signed char) (BYTE_))
44 #define word2jint(WORD_) ((JINT) (WORD_))
45 #define word2jshort(WORD_) ((JSHORT) (WORD_))
46 #define word2obj(WORD_) ((Object *) word2ptr(WORD_))
47 #define obj2word(OBJ_) ptr2word(OBJ_)
48 #define obj2ref(OBJ_) ptr2ref(OBJ_)
49 #define obj2ptr(OBJ_) ((void *) (OBJ_))
50 #define ptr2ref(PTR_) ((REFERENCE) ptr2word(PTR_))
51 #define ref2ptr(REF_) word2ptr((STACKWORD) (REF_))
52 #define ref2obj(REF_) ((Object *) ref2ptr(REF_))
55 static inline JINT jlong_compare (JLONG a1, JLONG a2)