Ignore:
Timestamp:
Jan 27, 2011, 6:22:28 PM (15 years ago)
Author:
dmik
Message:

jdk: Adopted JPDA to OS/2 and included in the build (closes #19).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/back/util_md.h

    r2 r249  
    3030#include <stdlib.h>      /* for _MAx_PATH */
    3131
     32#ifdef __EMX__
     33typedef __uint64_t UNSIGNED_JLONG;
     34#define CONST_JLONG(x) x##LL
     35#else
    3236typedef unsigned __int64 UNSIGNED_JLONG;
     37#define CONST_JLONG(x) x
     38#endif
     39
    3340typedef unsigned long UNSIGNED_JINT;
    3441
     
    5158#define HOST_TO_JAVA_LONG(x)                                            \
    5259                  ((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))
    6067#define HOST_TO_JAVA_FLOAT(x) stream_encodeFloat(x)
    6168#define HOST_TO_JAVA_DOUBLE(x) stream_encodeDouble(x)
Note: See TracChangeset for help on using the changeset viewer.