Changeset 249 for trunk/openjdk/jdk/src/windows/back
- Timestamp:
- Jan 27, 2011, 6:22:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk/jdk/src/windows/back/util_md.h
r2 r249 30 30 #include <stdlib.h> /* for _MAx_PATH */ 31 31 32 #ifdef __EMX__ 33 typedef __uint64_t UNSIGNED_JLONG; 34 #define CONST_JLONG(x) x##LL 35 #else 32 36 typedef unsigned __int64 UNSIGNED_JLONG; 37 #define CONST_JLONG(x) x 38 #endif 39 33 40 typedef unsigned long UNSIGNED_JINT; 34 41 … … 51 58 #define HOST_TO_JAVA_LONG(x) \ 52 59 ((x << 56) | \ 53 ((x & 0x000000000000ff00) << 40) | \54 ((x & 0x0000000000ff0000) << 24) | \55 ((x & 0x00000000ff000000) << 8) | \56 ((x & 0x000000ff00000000) >> 8) | \57 ((x & 0x0000ff0000000000) >> 24) | \58 ((x & 0x00ff000000000000) >> 40) | \59 (((UNSIGNED_JLONG)(x & 0xff00000000000000)) >> 56))60 ((x & CONST_JLONG(0x000000000000ff00)) << 40) | \ 61 ((x & CONST_JLONG(0x0000000000ff0000)) << 24) | \ 62 ((x & CONST_JLONG(0x00000000ff000000)) << 8) | \ 63 ((x & CONST_JLONG(0x000000ff00000000)) >> 8) | \ 64 ((x & CONST_JLONG(0x0000ff0000000000)) >> 24) | \ 65 ((x & CONST_JLONG(0x00ff000000000000)) >> 40) | \ 66 (((UNSIGNED_JLONG)(x & CONST_JLONG(0xff00000000000000))) >> 56)) 60 67 #define HOST_TO_JAVA_FLOAT(x) stream_encodeFloat(x) 61 68 #define HOST_TO_JAVA_DOUBLE(x) stream_encodeDouble(x)
Note:
See TracChangeset
for help on using the changeset viewer.